(sigil graphics font)
Font Loading and Text Rendering
Two kinds of font, drawn and measured by the same calls:
- load-font: the original fixed bake. Printable ASCII rasterised into one atlas at load, from a file path. Unchanged.
- make-font / load-font-from-memory: a typeface (the font file, kept in memory) at a pixel size, with a glyph atlas that grows on demand. UTF-8, pair kerning, fallback fonts, wrapping, one batched draw per string. Works from memory, so it works on the web.
Native functions are registered by font.c and text.c.
Exports
load-fontvariable(No description)
load-typefacevariable(No description)
load-typeface-from-memoryvariable(No description)
typeface?variable(No description)
make-fontvariable(No description)
load-font-from-memoryvariable(No description)
set-font-kerning!variable(No description)
set-font-fallbacks!variable(No description)
font-has-glyph?variable(No description)
font-preload!variable(No description)
font-atlas-statsvariable(No description)
font-free!variable(No description)
font-ascentvariable(No description)
font-descentvariable(No description)
font?variable(No description)
font-sizevariable(No description)
font-line-heightvariable(No description)
text-widthvariable(No description)
text-extentvariable(No description)
text-wrapvariable(No description)
draw-textvariable(No description)
draw-text-charvariable(No description)
draw-text-centeredvariable(No description)
draw-text-wrappedvariable(No description)