text_run
Mojo module 🡭
text_run
TextRun, in its own module for the reason text_align.mojo gives: canvas.vector.draw_target and canvas.buffer name it in a signature and cannot import render.mojo, which imports canvas.buffer itself. from canvas.text.render import TextRun also works: render.mojo re-exports this type beside the function that lays a list of them out.
Structs
TextRun: One piece of a labeldraw_text_runsdraws: its text at its own size and slant, placed against the runs around it. A label that mixes sizes or slants – a variable in italic, a superscript at 70% – is a list of these and stays one label: one<text>element on SVG, one string to select, copy or announce.