text_align
Mojo module 🡭
text_align
TextAlign, in its own module so it can be referenced by canvas.vector.draw_target – and transitively by canvas.buffer’s Canvas – without pulling in render.mojo’s font-touching imports (font_discovery.mojo/ttf.mojo/glyph_outline.mojo/bidi.mojo). from canvas.text.render import TextAlign also works: render.mojo re-exports this same type.
Structs
TextAlign: Horizontal alignment of each line relative to draw_text’s (x, y) anchor.