Structs§
- Temporary storage before line-wrapping.
- Represents GUI scale and convenience methods for rounding to pixels.
- Keeps track of good places to break a long row of text. Will focus primarily on spaces, secondarily on things like
-
Functions§
- Create background for glyphs that have them. Creates as few rectangular regions as possible.
- Add a horizontal line over a row of glyphs with a stroke and y decided by a callback.
- Calculate the Y positions and tessellate the text.
- Horizontally aligned the text on a row.
- is_cjk 🔒
- is_kana 🔒
- Layout text into a
Galley
. - We ignore y at this stage
- Trims the last glyphs in the row and replaces it with an overflow character (e.g.
…
).