Skip to main content

Module font

Module font 

Source

Structs§

FontAtlas
GlyphFont
A loaded font that blits glyphs directly to a u32 framebuffer.
GlyphInfo

Functions§

generate_text_mesh
Generate a flat Mesh (quads) for text in the XY plane, using the given font atlas. The mesh origin is at the left baseline. Scale with a Transform to place in 3D/4D space.
measure_text
Measure the pixel-width of a string without rasterizing.