Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
TMPro.TMP_FontAsset Class Reference
Inheritance diagram for TMPro.TMP_FontAsset:
TMPro.TMP_Asset

Public Types

enum  FontAssetTypes { FontAssetTypes.None = 0, FontAssetTypes.SDF = 1, FontAssetTypes.Bitmap = 2 }
 

Public Member Functions

void AddFaceInfo (FaceInfo faceInfo)
 
void AddGlyphInfo (TMP_Glyph[] glyphInfo)
 
void AddKerningInfo (KerningTable kerningTable)
 
bool HasCharacter (int character)
 Function to check if a certain character exists in the font asset. More...
 
bool HasCharacter (char character)
 Function to check if a certain character exists in the font asset. More...
 
bool HasCharacter (char character, bool searchFallbacks)
 Function to check if a character is contained in the font asset with the option to also check through fallback font assets. More...
 
bool HasCharacters (string text, out List< char > missingCharacters)
 Function to check if certain characters exists in the font asset. Function returns a list of missing characters. More...
 
bool HasCharacters (string text)
 Function to check if certain characters exists in the font asset. Function returns false if any characters are missing. More...
 
void ReadFontDefinition ()
 
void SortGlyphs ()
 Function to sort the list of glyphs. More...
 

Static Public Member Functions

static string GetCharacters (TMP_FontAsset fontAsset)
 Function to extract all the characters from a font asset. More...
 
static int[] GetCharactersArray (TMP_FontAsset fontAsset)
 Function which returns an array that contains all the characters from a font asset. More...
 

Public Attributes

Texture2D atlas
 
float boldSpacing = 7f
 
float boldStyle = 0.75f
 
List< TMP_FontAssetfallbackFontAssets
 List which contains the Fallback font assets for this font. More...
 
FontAssetTypes fontAssetType
 
FontCreationSetting fontCreationSettings
 
TMP_FontWeights[] fontWeights = new TMP_FontWeights[10]
 
byte italicStyle = 35
 
float normalSpacingOffset = 0
 
float normalStyle = 0
 
byte tabSize = 10
 
- Public Attributes inherited from TMPro.TMP_Asset
int hashCode
 HashCode based on the name of the asset. More...
 
Material material
 The material used by this asset. More...
 
int materialHashCode
 HashCode based on the name of the material assigned to this asset. More...
 

Properties

Dictionary< int, TMP_GlyphcharacterDictionary [get]
 
static TMP_FontAsset defaultFontAsset [get]
 Default Font Asset used as last resort when glyphs are missing. More...
 
FaceInfo fontInfo [get]
 The general information about the font. More...
 
Dictionary< int, KerningPairkerningDictionary [get]
 Dictionary containing the kerning data More...
 
KerningTable kerningInfo [get]
 

Member Enumeration Documentation

Enumerator
None 
SDF 
Bitmap 

Member Function Documentation

void TMPro.TMP_FontAsset.AddFaceInfo ( FaceInfo  faceInfo)
inline

Parameters
faceInfo
void TMPro.TMP_FontAsset.AddGlyphInfo ( TMP_Glyph[]  glyphInfo)
inline

Parameters
glyphInfo
void TMPro.TMP_FontAsset.AddKerningInfo ( KerningTable  kerningTable)
inline

Parameters
kerningTable
static string TMPro.TMP_FontAsset.GetCharacters ( TMP_FontAsset  fontAsset)
inlinestatic

Function to extract all the characters from a font asset.

Parameters
fontAsset
Returns
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
fontAsset
Returns
bool TMPro.TMP_FontAsset.HasCharacter ( int  character)
inline

Function to check if a certain character exists in the font asset.

Parameters
character
Returns
bool TMPro.TMP_FontAsset.HasCharacter ( char  character)
inline

Function to check if a certain character exists in the font asset.

Parameters
character
Returns
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
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
character
Returns
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
textString containing the characters to check
Returns
void TMPro.TMP_FontAsset.ReadFontDefinition ( )
inline

void TMPro.TMP_FontAsset.SortGlyphs ( )
inline

Function to sort the list of glyphs.

Member Data Documentation

Texture2D TMPro.TMP_FontAsset.atlas
float TMPro.TMP_FontAsset.boldSpacing = 7f
float TMPro.TMP_FontAsset.boldStyle = 0.75f
List<TMP_FontAsset> TMPro.TMP_FontAsset.fallbackFontAssets

List which contains the Fallback font assets for this font.

FontAssetTypes TMPro.TMP_FontAsset.fontAssetType
FontCreationSetting TMPro.TMP_FontAsset.fontCreationSettings
TMP_FontWeights [] TMPro.TMP_FontAsset.fontWeights = new TMP_FontWeights[10]
byte TMPro.TMP_FontAsset.italicStyle = 35
float TMPro.TMP_FontAsset.normalSpacingOffset = 0
float TMPro.TMP_FontAsset.normalStyle = 0
byte TMPro.TMP_FontAsset.tabSize = 10

Property Documentation

Dictionary<int, TMP_Glyph> TMPro.TMP_FontAsset.characterDictionary
get
TMP_FontAsset TMPro.TMP_FontAsset.defaultFontAsset
staticget

Default Font Asset used as last resort when glyphs are missing.

FaceInfo TMPro.TMP_FontAsset.fontInfo
get

The general information about the font.

Dictionary<int, KerningPair> TMPro.TMP_FontAsset.kerningDictionary
get

Dictionary containing the kerning data

KerningTable TMPro.TMP_FontAsset.kerningInfo
get


The documentation for this class was generated from the following file: