Expand description
Text rendering infrastructure.
This module provides glyph rasterization, atlas generation, and caching for rendering text with TrueType/OpenType fonts.
§Architecture
- Rasterizer (
rasterizer) - wrapsfontdueto produce per-glyph grayscale bitmaps with metrics. - Glyph Atlas (
glyph_atlas) - packs rasterized glyphs into a single RGBA8 texture atlas with UV lookup. - Atlas Cache (
atlas_cache) - caches generated atlases by (font handle, pixel size) to avoid repeated rasterization.
Re-exports§
pub use atlas_cache::GlyphAtlasCache;pub use glyph_atlas::GlyphAtlas;pub use glyph_atlas::GlyphInfo;pub use glyph_atlas::UvRect;pub use rasterizer::GlyphMetrics;pub use rasterizer::RasterizedGlyph;
Modules§
- atlas_
cache - Glyph atlas caching layer.
- glyph_
atlas - Glyph atlas generation.
- rasterizer
- Glyph rasterization wrapper around
fontdue.