Expand description
Font texture atlas.
Uses ab_glyph to rasterize a system TTF into a single R8 texture. Falls back to a placeholder if no font is found.
Structs§
- Font
Atlas - Complete font atlas ready to upload to the GPU. Uses Signed Distance Field (SDF) encoding for resolution-independent rendering. Each pixel stores the distance to the nearest edge: 128 = on the edge
- GlyphUv
- UV rectangle for one glyph in the atlas.
Constants§
- ATLAS_
CHARS - The characters the engine can render.