Skip to main content

Module atlas

Module atlas 

Source
Expand description

Glyph atlas: every glyph of glyphs::GLYPHS rasterized once into a cell-sized alpha mask.

The rasterizer is our own: skrifa gives unscaled, unhinted outlines in font units, and coverage is an 8x8 supersampled non-zero winding test. It only uses + - * / and comparisons on f64, which are IEEE-exact, so masks are byte-identical on every OS and CPU. (A SIMD rasterizer with separate x86 and ARM paths would not guarantee that.)

Structs§

GlyphAtlas
Alpha masks for every glyph at one cell size.

Enums§

AtlasError

Statics§

FONT_DATA
The bundled monospace font (JetBrains Mono Regular, SIL OFL 1.1).