The '''StaticFont''' component is used to store data on a font set like Avali Scratch, Times New Roman, Hieroglyphs, Arial, and Monospaced fonts (monospaced fonts help people with dyslexia).
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|URL|Uri|
|URL|Uri| The location of where to load the font from
|Padding|Int|
|Padding|Int| How many pixels of padding should be used between letters in the font
|PixelRange|Int|
|PixelRange|Int|
|GlyphEmSize|Int|
|GlyphEmSize|Int|
|MipMaps|Bool|
|MipMaps|Bool| Whether to display lower res versions of the font when it is further away to save on performance
|MipMapFiltering|Filtering|
|MipMapFiltering|Filtering|
|LODBias|Float|
|LODBias|Float| Whether to see lower res versions at smaller distances to save performance
}}
}}
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
This component is auto generated when importing new font files. Simply find a font file (.TTF or similar) and drop it into the Resonite game window or import through the file browser in the dash. The game will then generate this component on a font object, with the <code>URL</code> field filled with a valid font resource.
The StaticFont component is used to store data on a font set like Avali Scratch, Times New Roman, Hieroglyphs, Arial, and Monospaced fonts (monospaced fonts help people with dyslexia).
Whether to see lower res versions at smaller distances to save performance
Usage
This component is auto generated when importing new font files. Simply find a font file (.TTF or similar) and drop it into the Resonite game window or import through the file browser in the dash. The game will then generate this component on a font object, with the URL field filled with a valid font resource.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.