Expand description
Processing and drawing glyphs.
StructsΒ§
- Bitmap
Glyph - A glyph defined by a bitmap.
- Color
Glyph - A glyph defined by a COLR glyph description.
- Glyph
- Positioned glyph.
- Glyph
Caches - Caches used for glyph rendering.
- Glyph
Run π - A sequence of glyphs with shared rendering properties.
- Glyph
RunBuilder - A builder for configuring and drawing glyphs.
- Hint
Cache π - LRU cache for hinting instances.
- Hint
Entry π - HintKey π
- Outline
Cache π - Caches glyph outlines for reuse.
Heavily inspired by
vello_encoding::glyph_cache. - Outline
Cache πSession - Outline
Entry π - Outline
Glyph - A glyph defined by a path (its outline) and a local transform.
- Outline
Key π - Outline
Path π - Prepared
Glyph - A simplified representation of a glyph, prepared for easy rendering.
- Prepared
Glyph πRun - VarLookup
Key π - Lookup key for variable font caches.
EnumsΒ§
ConstantsΒ§
- HINTING_
OPTIONS π - MAX_
CACHED_ πHINT_ INSTANCES - We keep this small to enable a simple LRU cache with a linear search. Regenerating hinting data is low to medium cost so itβs fine to redo it occasionally.
TraitsΒ§
- Glyph
Renderer - Trait for types that can render glyphs.
FunctionsΒ§
- find_
hint_ πentry - prepare_
bitmap_ πglyph - prepare_
colr_ πglyph - prepare_
glyph_ πrun - Prepare a glyph run for rendering.
- prepare_
outline_ πglyph
Type AliasesΒ§
- Normalized
Coord - A normalized variation coordinate (for variable fonts) in 2.14 fixed point format.
- VarKey π
- Key for variable font caches.