datumhue.font.builtin() -> FontA handle to the bundled brand font face. Use it to reference or reset the app default: datumhue.font.default = datumhue.font.builtin().
namespaceFonts2 functions, 1 propertyUI apps only
The bundled brand face, the app's default face, and per-script glyph fallback. Load custom faces with bytes:font().
| Field | Type | Access | Description |
|---|---|---|---|
default | Font | read/write | The app's default font face: every text surface that doesn't pin its own font uses it. Assigning re-applies to the app's text; reading returns the resolved face (the brand font when unset). |
datumhue.font.builtin() -> FontA handle to the bundled brand font face. Use it to reference or reset the app default: datumhue.font.default = datumhue.font.builtin().
datumhue.font.fallback(script: FontScript, font: Font)Register font as a covering face for an ISO-15924 script, so text in that script renders through it instead of missing-glyph boxes when the active face lacks those glyphs. Each run of text is shaped and falls back on its own, so text that mixes scripts needs no splitting. Raises if font is not a loaded font face.
-- Text in Arabic script now draws with this face wherever the active
-- face has no glyph for it.
local naskh = datumhue.package:dir():read("naskh.ttf"):font()
datumhue.font.fallback("Arab", naskh)| Value | Description |
|---|---|
"Arab" | |
"Hebr" | |
"Cyrl" | |
"Deva" | |
"Beng" | |
"Thai" | |
"Hani" |
Used by: datumhue.font.fallback