TFConvert Reference
This section describes the .FNTDEF
file format used by the TFConvert tool.
The .fntdef Format
The TFConvert tool creates a .tinyfnt
font using a font definition file that you create. The font definition file, a text file with the .fntdef
extension, specifies the TrueType font to import from, the range of characters to import, and other options. The .fntdef
file contains one option on each line.
Note
The ordering of statements in .FNTDEF
files does have an impact on the font definition. For example, properties such as AntiAlias must be specified before the InputRange property.
The following topics describe the .fntdef
options in detail.
.fntdef File Options
- AddFontToProcess
Specifies the path to a TrueType font to use for building a .tinyfnt font. - AdjustAscent
Adjusts the ascent of the font being created. - AdjustDescent
Adjusts the descent of the font being created. - AdjustExternalLeading
Adjusts the external leading measurement of the font being created. - AdjustInternalLeading
Adjusts the internal leading measurement of the font being created. - AdjustLeftMargin
Adjusts the left margin of a range of characters. - AdjustRightMargin
Adjusts the right margin of a character or range of characters. - AntiAlias
Specifies the degree to which to anti-alias the font. - ImportRange
Specifies a range of Unicode characters to import. - ImportRangeAndMap
Specifies a range of Unicode characters to import. - NoDefaultCharacter
Specifies that no default character will substitute for characters not imported into the .tinyfnt font. - OffsetX
Shifts a character or range of characters right or left. - OffsetY
Shifts a character or range of characters up or down. - SelectFont
Specifies a list of attributes that define the .tinyfnt font to create. - SetAsDefaultCharacter
Specifies the value of the character to substitute for characters not imported into the .tinyfnt font. - SetDefaultCharacter
Indicates that the default character defined by a TrueType font will be substituted for characters not imported to the TINYFNT font. - Verbosity
Specifies the verbosity level of TFConvert output. - # Comments
Indicates comments in a .fntdef file.