(One intermediate revision by one other user not shown)
Line 5:
Line 5:
|Image=StaticFontComponent.png
|Image=StaticFontComponent.png
|Name=Static Font
|Name=Static Font
}}
}}{{Note|Adjusting some properties on this component can cause memory leaks! See [https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/88 Issue #88]|danger}}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).
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-->
Line 13:
Line 12:
|URL|Uri| The location of where to load the font from.
|URL|Uri| The location of where to load the font from.
|Padding|Int| How many pixels of padding should be used between letters in the font.
|Padding|Int| How many pixels of padding should be used between letters in the font.
|PixelRange|Int|
|PixelRange|Int| Sets the distance field range in output pixels.
|GlyphEmSize|Int|
|GlyphEmSize|Int| Sets the size of the glyphs in the atlas in pixels per em.
|MipMaps|Bool| Whether to display lower res versions of the font when it is further away to save on performance.
|MipMaps|Bool| Whether to display lower res versions of the font when it is further away to save on performance.
|MipMapFiltering|Filtering| How to filter transitions between mipmaps when it is viewed at incremental distances further away.
|MipMapFiltering|Filtering| How to filter transitions between mipmaps when it is viewed at incremental distances further away.
Line 32:
Line 31:
* [[Component:FontChain]] for filling missing glyphs.
* [[Component:FontChain]] for filling missing glyphs.
Adjusting some properties on this component can cause memory leaks! See Issue #88
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.