Log inGet started

.font asset type

A .font is a first-class font asset: font-file bytes (TTF / OTF / WOFF / WOFF2) converted into a guid-anchored asset via asset.create("font", name, { bytes = … }).

A font is a general CPU resource usable by any text surface. The onRegister hook calls the engine font.register(name, bytes) primitive, which installs the parsed face into both the 2D/3D text system (text.*) and the egui UI text system. After registration, fontFamily = "<name>" resolves on every text surface — there is no purely-UI font.

Fonts are CPU resources (not GPU), so the primitive lives in the font.* namespace, the CPU analogue of renderer.texture.create.

Layout

<name>.font/
  <name>.ttf        the font file (or .otf / .woff / .woff2)
  README.md         human note
  • asset-type
  • reference