Expand description
Default / concrete implementations of the text3 trait abstractions.
This module bridges the generic text3 layout engine and the concrete
FontRef / ParsedFont types. It provides:
ParsedFontTraitimplementation forFontRef- Font loading via
PathLoader - The core
shape_text_internalshaping function
Structs§
- Path
Loader - A
FontLoaderthat parses font data from a byte slice.
Traits§
- Font
RefExt - Extension trait for
FontRefto provide access to font bytes and metrics
Functions§
- font_
ref_ from_ bytes - Creates a
FontReffrom font bytes by parsing them into aParsedFont. - shape_
text_ for_ parsed_ font - Public helper function to shape text for
ParsedFont, returning Glyph This is used by theParsedFontTraitimplementation forParsedFont