(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)

(No description)

(No description)

typeface?variable

(No description)

make-fontvariable

(No description)

(No description)

(No description)

(No description)

(No description)

(No description)

(No description)

font-free!variable

(No description)

font-ascentvariable

(No description)

font-descentvariable

(No description)

font?variable

(No description)

font-sizevariable

(No description)

(No description)

text-widthvariable

(No description)

text-extentvariable

(No description)

text-wrapvariable

(No description)

draw-textvariable

(No description)

(No description)

(No description)

(No description)