font

This definition is used to define a font resource, used for rendering text.


Definition

<font name="..." > <ttf > <file > ... </file> <name > ... </name> <size > ... </size> </ttf> <color > ... </color> <shadow > <offset > ... </offset> <color > ... </color> </shadow> </font>

<font name="..." >

 

<ttf >

 

<file > ... </file>

The file name of a TTF file containing the font data.

<name > ... </name>

The font name to use from within the TTF file specified.

<size > ... </size>

The pixel height to use for this font asset.

</ttf>

 

<color > ... </color>

The color used for the font, in the form #aarrggbb. If alpha is zero or not defined, FF is assumed.

<shadow >

Define to create text shadow.

<offset > ... </offset>

The offset from the original text where the shadow text should be drawn.

<color > ... </color>

The color to use when rendering the text shadow in RGB hexadecimal format.

</shadow>

 

</font>

 

Â