Skip to main content

Module glyph_cache

Module glyph_cache 

Source
Expand description

Glyph path cache: caches charstring interpretation results per font.

Stores glyph outlines in charstring coordinates (pre-FontMatrix, pre-CTM). One cache entry per glyph per font, regardless of size/orientation. FontMatrix and CTM transforms are still applied per-render.

Structs§

CachedGlyph
Cached glyph outline + width in charstring coordinates.
CachedType3Glyph
Cached Type 3 glyph: display list elements + origin for translation.
GlyphCache
Per-font glyph path cache.

Enums§

Type3CacheMode
Cache mode set by setcachedevice/setcharwidth during Type 3 BuildChar.

Functions§

get_or_create_cache
Get or create the glyph cache for a font entity.