Class TMP_FontAsset
Inherited Members
Namespace: TMPro
Assembly: solution.dll
Syntax
[Serializable]
[ExcludeFromPreset]
public class TMP_FontAsset : TMP_Asset
Fields
Name | Description |
---|---|
atlas | |
bold |
The spacing between characters when using regular style. |
bold |
Defines the dilation of the text when using bold style. |
italic |
Defines the slant of the text when using italic style. |
normal |
The spacing between characters when using regular style. |
normal |
Defines the dilation of the text when using regular style. |
tab |
Properties
Name | Description |
---|---|
atlas |
The height of the atlas texture(s) used by this font asset. |
atlas |
The padding used between glyphs contained in the atlas texture(s) used by this font asset. |
atlas |
|
atlas |
|
atlas |
The font atlas used by this font asset. This is always the texture at index [0] of the fontAtlasTextures. |
atlas |
Number of atlas textures used by this font asset. |
atlas |
Array of atlas textures that contain the glyphs used by this font asset. |
atlas |
The width of the atlas texture(s) used by this font asset. |
character |
Dictionary used to lookup characters contained in the font asset by their unicode values. |
character |
List containing the characters of the given font asset. |
creation |
The settings used in the Font Asset Creator when this font asset was created or edited. |
face |
Information about the font's face. |
fallback |
List containing the Fallback font assets for this font. |
font |
Table containing the various font features of this font asset. |
font |
The general information about the font. This property and FaceInfo_Legacy type are no longer used in version 1.1.0 of the font asset. |
font |
Array containing font assets to be used as alternative typefaces for the various potential font weights of this font asset. |
glyph |
Dictionary used to lookup glyphs contained in the font asset by their index. |
glyph |
List of glyphs contained in the font asset. |
is |
|
source |
Source font file when atlas population mode is set to dynamic. Null when the atlas population mode is set to static. |
version | The version of the font asset class. Version 1.1.0 adds support for the new TextCore.FontEngine and Dynamic SDF system. |
Methods
Name | Description |
---|---|
Clear |
Clears font asset data including the glyph and character tables and textures. Function might be changed to Internal and only used in tests. |
Create |
Create new instance of a font asset using default settings. |
Create |
Create new instance of a font asset. |
Get |
Function to extract all the characters from a font asset. |
Get |
Function which returns an array that contains all the characters from a font asset. |
Has |
Function to check if a character is contained in the font asset with the option to also check through fallback font assets. |
Has |
Function to check if a certain character exists in the font asset. |
Has |
Function to check if certain characters exists in the font asset. Function returns false if any characters are missing. |
Has |
Function to check if certain characters exists in the font asset. Function returns a list of missing characters. |
Has |
|
Read |
|
Try |
Try adding the characters from the provided string to the font asset. |
Try |
Try adding the characters from the provided string to the font asset. |
Try |
Try adding the characters from the provided string to the font asset. |
Try |
Try adding the characters from the provided string to the font asset. |