Skip to content

ares_tools::Font

An ares_tools::Font describes a font. They are contained exclusively in .fnt files found in data.m4b/common/common.m4b/font/.

ares_tools::Font structure

Name Type Description
name BasicString
nTextures uint32 Number of .tga texture files containing the font's letters. They are in the same directory as the .fnt file with a one-indexed _%d suffix in the filename.
letters Array<Letter>

Letter structure

Name Type Description
code uint16 Code point.
lowerLeftTexCoord Vector2
upperRightTexCoord Vector2
textureIndex int32 Index of the texture file containing this letter. See the description of [ares_tools::Font]'s nTextures field above for more info.

Note

The floats in both tex coords consider the bottom-left (0.0, 0.0), and the upper right (1.0, 1.0).