Structsยง
- Format
Summary ๐ - Paragraph ๐
- Temporary storage before line-wrapping.
- Point
Scale ๐ - Represents GUI scale and convenience methods for rounding to pixels.
- RowBreak
Candidates ๐ - Keeps track of good places to break a long row of text.
Will focus primarily on spaces, secondarily on things like
-
Functionsยง
- add_
row_ ๐backgrounds - Create background for glyphs that have them. Creates as few rectangular regions as possible.
- add_
row_ ๐hline - Add a horizontal line over a row of glyphs with a stroke and y decided by a callback.
- calculate_
intrinsic_ ๐size - Calculate the intrinsic size of the text.
- format_
summary ๐ - galley_
from_ ๐rows - Calculate the Y positions and tessellate the text.
- halign_
and_ ๐justify_ row - Horizontally aligned the text on a row.
- is_cjk ๐
- is_
cjk_ ๐break_ allowed - is_
cjk_ ๐ideograph - is_kana ๐
- layout
- Layout text into a
Galley
. - layout_
section ๐ - line_
break ๐ - replace_
last_ ๐glyph_ with_ overflow_ character - Trims the last glyphs in the row and replaces it with an overflow character (e.g.
โฆ
). - rows_
from_ ๐paragraphs - tessellate_
glyphs ๐ - tessellate_
row ๐