Skip to main content

Module msdf

Module msdf 

Source

Structs§

MsdfFont
MSDF font descriptor with atlas texture and glyph metrics.
MsdfFontStore
MSDF font storage, keyed by a font ID.
MsdfGlyph
Glyph metrics for one character in an MSDF atlas.

Constants§

MSDF_FRAGMENT_SOURCE
The MSDF fragment shader source (used with ShaderStore::create). This is the fragment portion only; the standard vertex preamble and ShaderParams uniform are prepended by the ShaderStore automatically.

Functions§

generate_builtin_msdf_font
Generate a built-in MSDF font from the CP437 8x8 bitmap data.
parse_msdf_metrics
Parse MSDF font metrics from a JSON string (msdf-atlas-gen format).