Skip to main content

Module text

Module text 

Source
Expand description

Text — bitmap-font glyph rendering.

M0.15 ships the bitmap atlas backed by [font8x8]. Each glyph is an 8×8 bitmap; the atlas is a 16×16 grid of cells (128×128 pixels total). Vector fonts via fontdue come in a later chunk if/when we need anti-aliased type at multiple sizes.

Structs§

Font
Bitmap font — owns a glyph atlas and per-codepoint metrics. Cheaply cloneable; the underlying atlas is Arc-wrapped.
FontInner 🔒
GlyphMetrics
Per-glyph metrics — UV rect in the atlas.
Text
Text node — bitmap glyph string anchored at its container’s origin.