LOAD_FONT
Loads a font from file and makes it available for use in the user interface.
Attributes brief detailed show all inherited
| Name | Description | Default | |
|---|---|---|---|
| file | Path to the font file to load. A font file may include several fonts. Use the name of the included fonts for your text widgets | empty | |
| ignore_missing | When set to true, no error is thrown if the file cannot be loaded (missing or corrupted) | false |
Examples
- <!-- load font -->
- <LOAD_FONT file="/PNS/Skins/.../Oswald-VariableFont.ttf" ignore_missing="true" />
- <!-- use it -->
- <TEXT font_face="Oswald" font_size="40" value="Hello, world!"/>

* If you're using LM Skin the fonts can be simply added into "LetiMix/fonts" directory and loaded in the main skin file via "LOAD_FONTS" directive.
Comments
Please, authorize to view and post comments.