Documentation
Docs/en/reference/font-format/index.md
Generated Font Format Reference
Generated reference. Do not edit directly. Update
BuildTools/FontFormatInterface.json, then runpython BuildTools/docs_font_format.py --write.
| Index | Formats | Binding | Authoring | Layout | Rendering | Validation | Canonical JSON | Guide |
This reference describes the Engine-owned TrueType text pipeline: face binding, the built-in default font, colored faces, the bitmap-font converter, text layout, rendering, and validation. Project font selection and typography policy remain outside this contract.
Contract status
| Field | Value |
|---|---|
| Stability | experimental |
| Support policy | TrueType faces are the only runtime text format and client layout behavior is supported but still experimental; embedding projects own font choice, glyph coverage, typography, GUI slots, and visual acceptance. |
| Source manifest | BuildTools/FontFormatInterface.json |
| Contract digest | ef8ae9025b637b13a1fb9c6177d65a84e544c09f2c0a3a06c215f01aa39ed4b3 |
| Runtime faces | .ttf |
| Default font | Fonts/FOnline-Regular.ttf, 10 px, Embedded |
| Embedded data capacity default | 400000 |
| Colored face load flags | FT_LOAD_COLOR | FT_LOAD_NO_HINTING |
| Client atlas | IfaceSprites |
| Reference | Entries | Purpose |
|---|---|---|
| Formats | 3 | Runtime face formats, converter sources, and shipped faces. |
| Binding | 10 | Face binding, the default font, slots, atlas, and Embedded capacity. |
| Authoring | 7 | The bitmap-font converter, its output, and its staleness check. |
| Layout | 10 | TextFormat, wrapping, alignment, measurement, and glyph fallback. |
| Rendering | 9 | Glyph cells, colors, outlines, effects, color tags, and cache. |
| Validation | 6 | Failure modes and executable validation gates. |
Boundary
Included:
- TrueType faces rasterized at runtime through the face-list Game.BindFont overload
- the engine default font bound to the Default slot before any script runs
- colored faces drawn with their own COLR layer colors
- the bitmap-font converter that turns authored bitmap fonts into TrueType faces, and its staleness check
- raw-copy delivery of faces and the Embedded pack capacity that holds the default font
- font slots, atlas placement, glyph sheets, and rebinding
- TextFormat flags, wrapping, alignment, measurement, inline colors, and caching
- source-backed diagnostics and validation routing
Excluded:
- embedding-project font names, slot catalogs, GUI assignments, and typography policy
- font licensing, redistribution rights, and language-specific glyph acceptance
- bitmap font descriptors as a runtime format: the client loads neither .fofnt, .fnt, nor .bmfc
- OpenType CFF, WOFF, variable-font instances, text shaping, and bidirectional layout, which the client does not provide
- project-local localization packs and authored display strings