Skip to main content

Module font

Module font 

Source

Structs§

Font
A sized font selection.

Enums§

FontFamily
Which typeface to select, independent of size.

Constants§

CANVAS_FAMILY
The family a diagram glyph is drawn in. Repointed to the user’s selected font when the fonts are installed, so switching fonts restyles the drawing and leaves the UI chrome alone.

Statics§

EXCALIFONT
Excalifont (“Sketchy”), embedded at compile time.
FORUM
Forum (“Formal”) — Google’s Forum, embedded at compile time.
IOSEVKA
Iosevka (“Monospace”), embedded at compile time — SUBSET, not the full face. The full build is 10.8 MB of mostly full-Unicode glyphs and twenty stylistic sets the shaper never enables; this 222 KB subset keeps Latin, Greek (for Ω/µ-grade labels), punctuation, sub/superscripts, currency, letterlike, arrows, math operators, box drawing, blocks and geometric shapes, with hinting and the default layout features. A label using a character outside those ranges falls back per the host’s family list. To regenerate from a full Iosevka-Regular.ttf:
ROBOTO
Roboto (“Basic”) — Google’s Roboto, embedded at compile time.