Skip to main content

Module atlas

Module atlas 

Source
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§

FontAtlas
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.