Documentation
Docs/en/reference/font-format/fofnt.md
FOFNT Field Reference
Generated reference. Do not edit directly. Update
BuildTools/FontFormatInterface.json, then runpython BuildTools/docs_font_format.py --write.
| Index | Formats | FOFNT | BMFont | Binding | Layout | Rendering | Validation | Canonical JSON | Guide |
| Stable ID | Key | Syntax | Behavior | Source |
|---|---|---|---|---|
font-format.fofnt.version |
Version | Version <integer> |
Make Version the first parsed key; author version 2 for current resources. Values greater than 2 are rejected. | Source/Client/FontManager.cpp |
font-format.fofnt.image |
Image | Image <relative-resource>[*] |
Name a non-empty image resource relative to the descriptor; append * to request grayscale normalization and runtime tinting. | Source/Client/FontManager.cpp |
font-format.fofnt.line-height |
LineHeight | LineHeight <integer-pixels> |
Set the glyph-line height in pixels, or leave it zero/omitted to derive the maximum authored glyph height. | Source/Client/FontManager.cpp |
font-format.fofnt.y-advance |
YAdvance | YAdvance <integer-pixels> |
Set the extra vertical gap added between consecutive text lines. | Source/Client/FontManager.cpp |
font-format.fofnt.letter |
Letter | Letter '<UTF-8-codepoint>' |
Start each glyph record with Letter and one valid UTF-8 codepoint after the first apostrophe. | Source/Client/FontManager.cpp |
font-format.fofnt.position-x |
PositionX | PositionX <integer-pixels> |
Set the glyph rectangle’s left coordinate in the image. | Source/Client/FontManager.cpp |
font-format.fofnt.position-y |
PositionY | PositionY <integer-pixels> |
Set the glyph rectangle’s top coordinate in the image. | Source/Client/FontManager.cpp |
font-format.fofnt.width |
Width | Width <integer-pixels> |
Set the visible glyph rectangle width, excluding the one-pixel sampling border. | Source/Client/FontManager.cpp |
font-format.fofnt.height |
Height | Height <integer-pixels> |
Set the visible glyph rectangle height, excluding the one-pixel sampling border. | Source/Client/FontManager.cpp |
font-format.fofnt.offset-x |
OffsetX | OffsetX <signed-integer-pixels> |
Set the signed horizontal bearing in Engine coordinates; drawing places the quad at cursor X minus OffsetX. | Source/Client/FontManager.cpp |
font-format.fofnt.offset-y |
OffsetY | OffsetY <signed-integer-pixels> |
Set the signed vertical bearing in Engine coordinates; drawing places the quad at cursor Y minus OffsetY. | Source/Client/FontManager.cpp |
font-format.fofnt.x-advance |
XAdvance | XAdvance <signed-integer-pixels> |
Set the horizontal cursor advance after the glyph; include an explicit space glyph when spaces must consume width. | Source/Client/FontManager.cpp |
font-format.fofnt.end-and-comments |
End and comments | End | #comment | ;comment |
Terminate the useful descriptor with End; # and ; begin comments only when encountered inside the whitespace-delimited key token. | Source/Client/FontManager.cpp |