Module text_layout

Source

Structsยง

FormatSummary ๐Ÿ”’
Paragraph ๐Ÿ”’
Temporary storage before line-wrapping.
PointScale ๐Ÿ”’
Represents GUI scale and convenience methods for rounding to pixels.
RowBreakCandidates ๐Ÿ”’
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 ๐Ÿ”’