|MaxSize|Int| The max size of a glyph in the font sheet.
|MaxSize|Int| The max size of a glyph in the font sheet.
|Glyphs|{{RootFieldType|SyncList`1|[[#SpriteGlyph|SpriteGlyph]]}}|TypeAdv2=true| A list of Font characters that should make up this dynamic font.
|Glyphs|{{RootFieldType|SyncList`1|[[#SpriteGlyph|DynamicSpriteFont.SpriteGlyph]]}}|TypeAdv2=true| A list of Font characters that should make up this dynamic font.
|UnicodeCodepoint|UInt| the Unicode number of this Font character. See [https://en.m.wikipedia.org/wiki/List_of_Unicode_characters Wikipedia list of unicode characters].
|UnicodeCodepoint|UInt| the Unicode number of this Font character. See [https://en.m.wikipedia.org/wiki/List_of_Unicode_characters Wikipedia list of unicode characters].
|SpriteName|String| The name of the Sprite.
|SpriteName|String| The name of the Sprite.
|Bearing|Float2| The gap from this glyph from other Glyphs on the sheet.
|Bearing|Float2| See [[#Glyph Example|Glyph Example]].
|Advance|Float2| How much to advance the cursor when making the sheet.
|Advance|Float2| See [[#Glyph Example|Glyph Example]].
|Size|Float| the size of the glyph on the sheet.
|Size|Float| See [[#Glyph Example|Glyph Example]].
|Tintable|Bool| Whether this glyph is affectable by Font color.
|Tintable|Bool| Whether this glyph is affectable by Font color.
}}
}}
Latest revision as of 06:01, 17 March 2025
Component image
Dynamic Sprite Font component as seen in the Scene Inspector
The DynamicSpriteFont component is used to construct a font asset that can be used to create custom fonts character by character.
This component can cause memory leaks! See Issue #2771
If true, integrating this asset (e.g. processing procedural assets) gets higher priority than assets with this flag off. An example is user laser procedural meshes.