Skip to main content

Module font

Module font 

Source
Expand description

Embedded 8x16 anti-aliased bitmap font table for zero-dependency software text rasterization.

Structs§

FontFallbackChain
Fallback font resolution chain with per-glyph coverage checking.
SystemFontResolver
System font fallback cascade resolver across Linux, macOS, and Windows.

Enums§

GenericFontFamily
Generic CSS font family keyword.
OsPlatform
Operating system platform indicator for font resolution.

Constants§

FONT_8X16
Pre-rasterized 8x16 bitmap glyphs for printable ASCII characters 32..=126.
FONT_GLYPH_HEIGHT
FONT_GLYPH_WIDTH
TOFU_GLYPH
Fallback replacement glyph (hollow box / tofu) for unresolved Unicode characters.

Functions§

get_glyph
Retrieves the 8x16 bitmask slice for a given printable ASCII character.
get_glyph_or_fallback
Retrieves a glyph bitmask, resolving common Unicode symbols or falling back to the standard tofu box.
map_common_unicode
Maps common typographical Unicode characters to their visual ASCII approximations.