Renders text using fonts under the [url=https://www.angelcode.com/products/bmfont/]BMFont[/url] format.
Handles files with the [code].fnt[/code] extension.
</brief_description>
<description>
Renders text using [code]*.fnt[/code] fonts containing texture atlases. Supports distance fields. For using vector font files like TTF directly, see [DynamicFont].
Adds a character to the font, where [code]character[/code] is the Unicode value, [code]texture[/code] is the texture index, [code]rect[/code] is the region in the texture (in pixels!), [code]align[/code] is the (optional) alignment for the character and [code]advance[/code] is the (optional) advance.
</description>
</method>
<methodname="add_kerning_pair">
<returntype="void"/>
<argumentindex="0"name="char_a"type="int"/>
<argumentindex="1"name="char_b"type="int"/>
<argumentindex="2"name="kerning"type="int"/>
<description>
Adds a kerning pair to the [BitmapFont] as a difference. Kerning pairs are special cases where a typeface advance is determined by the next character.
</description>
</method>
<methodname="add_texture">
<returntype="void"/>
<argumentindex="0"name="texture"type="Texture"/>
<description>
Adds a texture to the [BitmapFont].
</description>
</method>
<methodname="clear">
<returntype="void"/>
<description>
Clears all the font data and settings.
</description>
</method>
<methodname="create_from_fnt">
<returntype="int"enum="Error"/>
<argumentindex="0"name="path"type="String"/>
<description>
Creates a BitmapFont from the [code]*.fnt[/code] file at [code]path[/code].
</description>
</method>
<methodname="get_kerning_pair"qualifiers="const">
<returntype="int"/>
<argumentindex="0"name="char_a"type="int"/>
<argumentindex="1"name="char_b"type="int"/>
<description>
Returns a kerning pair as a difference.
</description>
</method>
<methodname="get_texture"qualifiers="const">
<returntype="Texture"/>
<argumentindex="0"name="idx"type="int"/>
<description>
Returns the font atlas texture at index [code]idx[/code].