Class TMP_FontAssetUtilities
Inherited Members
Namespace: TMPro
Assembly: solution.dll
Syntax
public class TMP_FontAssetUtilities
Properties
Name | Description |
---|---|
instance | Get a singleton instance of the Font Asset Utilities class. |
Methods
Name | Description |
---|---|
GetCharacterFromFontAsset(uint, TMP_FontAsset, bool, FontStyles, FontWeight, out bool) | Returns the text element (character) for the given unicode value taking into consideration the requested font style and weight. Function searches the source font asset, its list of font assets assigned as alternative typefaces and potentially its fallbacks. The font asset out parameter contains a reference to the font asset containing the character. The typeface type indicates whether the returned font asset is the source font asset, an alternative typeface or fallback font asset. |
GetCharacterFromFontAssets(uint, TMP_FontAsset, List<TMP_FontAsset>, bool, FontStyles, FontWeight, out bool) | Returns the text element (character) for the given unicode value taking into consideration the requested font style and weight. Function searches the provided list of font assets, the list of font assets assigned as alternative typefaces to them as well as their fallbacks. The font asset out parameter contains a reference to the font asset containing the character. The typeface type indicates whether the returned font asset is the source font asset, an alternative typeface or fallback font asset. |
GetSpriteCharacterFromSpriteAsset(uint, TMP_SpriteAsset, bool) |