Expand description
Text layout logic.
Re-exports§
pub use types::Align;
Modules§
Structs§
- Lines
- An iterator yielding each line within the given
textas a new&str, where the start and end indices into each line are provided by the given iterator.
Enums§
- Wrap
- The way in which text should wrap around the width.
Functions§
- get_
line_ rects - get_
positioned_ glyphs - get_
text_ height - get_
text_ size - lines
- Produce an iterator yielding each line within the given
textas a new&str, where the start and end indices into each line are provided by the given iterator. - pt_
to_ px - Converts the given font size in “points” to its font size in pixels. assumes 96 dpi display. 1 pt = 1/72“
- pt_
to_ scale - Converts the given font size in “points” to a uniform
rusttype::Scale. - px_
to_ pt
Type Aliases§
- Font
- Positioned
Glyph - The RustType
PositionedGlyphtype.