Expand description
Glyph path and cell cache for CPU text rendering. Glyph path and cell cache for CPU rendering.
Two-level cache:
- Path cache:
PathStorageobjects keyed by (font, glyph, ppem). Avoids redundant path construction from font outlines. - Cell cache: Rasterizer cells keyed by (font, glyph, ppem, scale, sub-pixel). Avoids the expensive path→cells conversion on every frame. Cells are computed at position (0,0) and offset at render time.
Structs§
- Cached
Glyph - Result of a cache lookup: the path plus whether it’s hinted (pixel coords) or not.
- Glyph
Cache - Cache of built glyph paths and pre-rasterized cells.
Functions§
- build_
path_ from_ contours - Build an agg
PathStoragefrom TrueType contour data (points inF26Dot6).