|
enum | FontAssetTypes { None = 0,
SDF = 1,
Bitmap = 2
} |
|
|
void | OnEnable () |
|
void | OnDisable () |
|
bool | HasCharacter_Internal (char character, bool searchFallbacks) |
| Function to check if a character is contained in a font asset with the option to also check through fallback font assets. This private implementation does not search the fallback font asset in the TMP Settings file. More...
|
|
Definition at line 23 of file TMP_FontAsset.cs.
◆ AddFaceInfo()
void TMPro.TMP_FontAsset.AddFaceInfo |
( |
FaceInfo |
faceInfo | ) |
|
|
inline |
◆ AddGlyphInfo()
void TMPro.TMP_FontAsset.AddGlyphInfo |
( |
TMP_Glyph [] |
glyphInfo | ) |
|
|
inline |
◆ AddKerningInfo()
void TMPro.TMP_FontAsset.AddKerningInfo |
( |
KerningTable |
kerningTable | ) |
|
|
inline |
◆ GetCharacters()
static string TMPro.TMP_FontAsset.GetCharacters |
( |
TMP_FontAsset |
fontAsset | ) |
|
|
inlinestatic |
Function to extract all the characters from a font asset.
- Parameters
-
- Returns
Definition at line 605 of file TMP_FontAsset.cs.
◆ GetCharactersArray()
static int [] TMPro.TMP_FontAsset.GetCharactersArray |
( |
TMP_FontAsset |
fontAsset | ) |
|
|
inlinestatic |
Function which returns an array that contains all the characters from a font asset.
- Parameters
-
- Returns
Definition at line 623 of file TMP_FontAsset.cs.
◆ HasCharacter() [1/3]
bool TMPro.TMP_FontAsset.HasCharacter |
( |
int |
character | ) |
|
|
inline |
Function to check if a certain character exists in the font asset.
- Parameters
-
- Returns
Definition at line 423 of file TMP_FontAsset.cs.
◆ HasCharacter() [2/3]
bool TMPro.TMP_FontAsset.HasCharacter |
( |
char |
character | ) |
|
|
inline |
Function to check if a certain character exists in the font asset.
- Parameters
-
- Returns
Definition at line 440 of file TMP_FontAsset.cs.
◆ HasCharacter() [3/3]
bool TMPro.TMP_FontAsset.HasCharacter |
( |
char |
character, |
|
|
bool |
searchFallbacks |
|
) |
| |
|
inline |
Function to check if a character is contained in the font asset with the option to also check through fallback font assets.
- Parameters
-
character | |
searchFallbacks | |
- Returns
Definition at line 458 of file TMP_FontAsset.cs.
◆ HasCharacter_Internal()
bool TMPro.TMP_FontAsset.HasCharacter_Internal |
( |
char |
character, |
|
|
bool |
searchFallbacks |
|
) |
| |
|
inlineprivate |
Function to check if a character is contained in a font asset with the option to also check through fallback font assets. This private implementation does not search the fallback font asset in the TMP Settings file.
- Parameters
-
character | |
searchFallbacks | |
- Returns
Definition at line 520 of file TMP_FontAsset.cs.
◆ HasCharacters() [1/2]
bool TMPro.TMP_FontAsset.HasCharacters |
( |
string |
text, |
|
|
out List< char > |
missingCharacters |
|
) |
| |
|
inline |
Function to check if certain characters exists in the font asset. Function returns a list of missing characters.
- Parameters
-
- Returns
Definition at line 557 of file TMP_FontAsset.cs.
◆ HasCharacters() [2/2]
bool TMPro.TMP_FontAsset.HasCharacters |
( |
string |
text | ) |
|
|
inline |
Function to check if certain characters exists in the font asset. Function returns false if any characters are missing.
- Parameters
-
text | String containing the characters to check |
- Returns
Definition at line 585 of file TMP_FontAsset.cs.
◆ ReadFontDefinition()
void TMPro.TMP_FontAsset.ReadFontDefinition |
( |
| ) |
|
|
inline |
◆ SortGlyphs()
void TMPro.TMP_FontAsset.SortGlyphs |
( |
| ) |
|
|
inline |
◆ fallbackFontAssets
List containing the Fallback font assets for this font.
Definition at line 103 of file TMP_FontAsset.cs.
◆ creationSettings
The settings used in the Font Asset Creator when this font asset was created or edited.
Definition at line 109 of file TMP_FontAsset.cs.
◆ defaultFontAsset
Default Font Asset used as last resort when glyphs are missing.
Definition at line 29 of file TMP_FontAsset.cs.
◆ fontInfo
◆ kerningDictionary
Dictionary<int, KerningPair> TMPro.TMP_FontAsset.kerningDictionary |
|
get |
◆ kerningInfo
The documentation for this class was generated from the following file:
- Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TMP_FontAsset.cs