Skip to main content

Module cache

Module cache 

Source
Expand description

Glyph atlas cache with LRU eviction.

Structsยง

AtlasConfig
Configuration for multiple atlas support.
GlyphAtlas
Core glyph atlas cache data shared by all renderer backends.
GlyphCacheConfig
Configuration for glyph cache behavior.
GlyphCacheEntry ๐Ÿ”’
Internal cache entry storing atlas slot and access time.
GlyphCacheStats
Statistics about cached glyphs.
ImageCache
Manages image resources for the renderer.
PendingBitmapUpload
A bitmap glyph pixmap awaiting GPU upload.
PendingClearRect
An atlas region that must be cleared to transparent.
VarLookupKey ๐Ÿ”’
Lookup key for variable font caches (borrowed version).

Constantsยง

EMPTY_GLYPH_MAP ๐Ÿ”’
Compile-time empty map for static (non-variable) glyph entries.
EMPTY_VAR_MAP ๐Ÿ”’
Compile-time empty map for variable-font glyph entries, keyed by variation coordinates.
GLYPH_PADDING
Padding in pixels added to each side of a glyph to prevent texture bleeding.
HASH_SEED ๐Ÿ”’
Fixed seed for deterministic hashing across all glyph cache maps.

Functionsยง

push_clear_rect_for_slot ๐Ÿ”’
Queue a clear rect covering the full padded region of an evicted atlas slot.

Type Aliasesยง

FixedHashMap ๐Ÿ”’
Deterministic hash map type alias.
VarKey ๐Ÿ”’
Key for variable font caches (owned version).