Automated: update 'HighPriorityIntegration' description |
fix formatting, add usage example |
||
Line 3: | Line 3: | ||
|Name=Font Chain | |Name=Font Chain | ||
}} | }} | ||
The '''FontChain''' component provides an easy way to use "Fallback" fonts for a main font, usually in the event that the main font does not contain certain Unicode characters. Any place where a [[Component:StaticFont|StaticFont]] can be used, a FontChain can be used. | |||
The | The <code>MainFont</code> defines which font will be primarily used for the text. For any characters of a text that do not exist in the main font, all the <code>FallbackFonts</code> will be searched through, in order, to find a matching character. Only if all fallback fonts do not contain the character will a "true fallback" of a box will appear. | ||
== | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}} | |HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}} | ||
Line 13: | Line 14: | ||
}} | }} | ||
== | == Usage == | ||
Useful for example for Avali-Scratch, where numbers don't have a character. or for fonts where characters don't exist. | |||
== Examples == | == Examples == | ||
{{stub}} | |||
== See Also == | == See Also == | ||
* [[Component:StaticFont]] | |||
[[Category:Components:Rendering:Text{{#translation:}}|Font Chain]] | [[Category:Components:Rendering:Text{{#translation:}}|Font Chain]] | ||
[[Category:Components{{#translation:}}|Font Chain]] | [[Category:Components{{#translation:}}|Font Chain]] | ||
Latest revision as of 17:23, 22 December 2024
The FontChain component provides an easy way to use "Fallback" fonts for a main font, usually in the event that the main font does not contain certain Unicode characters. Any place where a StaticFont can be used, a FontChain can be used.
The MainFont
defines which font will be primarily used for the text. For any characters of a text that do not exist in the main font, all the FallbackFonts
will be searched through, in order, to find a matching character. Only if all fallback fonts do not contain the character will a "true fallback" of a box will appear.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
HighPriorityIntegration
|
Bool | 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. |
MainFont
|
Font | The main font to use. |
FallbackFonts
|
list of Font | The fallback fonts to use. |
Usage
Useful for example for Avali-Scratch, where numbers don't have a character. or for fonts where characters don't exist.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.