Class TMP_FontUtilities
Namespace: TMPro
Syntax
public static class TMP_FontUtilities
Methods
SearchForCharacter(List<FontAsset>, UInt32, out Character)
Search through the given list of fonts and their possible fallbacks for the specified character.
Declaration
public static FontAsset SearchForCharacter(List<FontAsset> fonts, uint unicode, out Character character)
Parameters
| Type | Name | Description |
|---|---|---|
| List<UnityEngine.TextCore.Text.FontAsset> | fonts | |
| UInt32 | unicode | |
| Character | character |
Returns
| Type | Description |
|---|---|
| UnityEngine.TextCore.Text.FontAsset |
SearchForCharacter(FontAsset, UInt32, out Character)
Search through the given font and its fallbacks for the specified character.
Declaration
public static FontAsset SearchForCharacter(FontAsset font, uint unicode, out Character character)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.TextCore.Text.FontAsset | font | The font asset to search for the given character. |
| UInt32 | unicode | The character to find. |
| Character | character | out parameter containing the glyph for the specified character (if found). |
Returns
| Type | Description |
|---|---|
| UnityEngine.TextCore.Text.FontAsset |