Documentation
Docs/en/reference/font-format/formats.md
Font Resource Formats
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 |
| Stable ID | Suffix | Role | Contract | Source |
|---|---|---|---|---|
font-format.format.truetype |
.ttf |
The only runtime text format, rasterized by FreeType | Ship every text face as a TrueType font and bind it through the face-list Game.BindFont overload; the client draws text from nothing else. | Source/Scripting/ClientGlobalScriptMethods.cpp, Source/Client/FontManager.cpp |
font-format.format.truetype-colored |
.ttf |
TrueType face with COLR version 0 color layers over a CPAL palette | Author a multi-color face as COLR v0 layers with a CPAL palette; the client draws it with its own colors and multiplies them by the text color. | ThirdParty/freetype/include/freetype/config/ftoption.h, Source/Client/FontRasterizer.cpp |
font-format.format.bitmap-source |
.fofnt, .fnt |
Converter input only; the runtime does not load them | Keep an authored bitmap font as a .fofnt text descriptor with its image, or a binary BMFont v3 .fnt, outside every resource pack, and convert it to a TrueType face with the converter before shipping. | BuildTools/bitmap_font_to_ttf.py, Source/Client/FontRasterizer.cpp |
Shipped faces
| Pack | Faces |
|---|---|
Embedded |
FOnline-Regular.ttf |
Core |
FOnline-Big.ttf, FOnline-BigNumbers.ttf, FOnline-Fat.ttf, FOnline-Numbers.ttf, FOnline-Old.ttf, FOnline-SandNumbers.ttf, FOnline-Special.ttf, FOnline-Thin.ttf |
Colored shipped faces
| Tables | Faces |
|---|---|
COLR, CPAL |
FOnline-BigNumbers.ttf, FOnline-Numbers.ttf, FOnline-SandNumbers.ttf |