Stores data to draw and display a font. More...
Public Member Functions | |
void | InitDictionary () |
Initializes the dictionary, if it is required. | |
void | SetDictionary (Dictionary< int, tk2dFontChar > dict) |
Internal function to set up the dictionary. | |
Public Attributes | |
float | lineHeight |
The height of the line in local units. | |
tk2dFontChar[] | chars |
Array of tk2dFontChar. If this.useDictionary is true, charDict will be used instead. | |
string[] | fontPlatforms = null |
Returns an array of platform names. | |
string[] | fontPlatformGUIDs = null |
Returns an array of GUIDs, each referring to an actual tk2dFontData object This object contains the actual font for the platform. | |
Dictionary< int, tk2dFontChar > | charDict |
Dictionary of characters. This is used when chars is null. Chars is preferred when number of characters is low (< 2048). | |
bool | useDictionary = false |
Whether this font uses the dictionary or an array for character lookup. | |
tk2dFontKerning[] | kerning |
Array of tk2dFontKerning | |
float | largestWidth |
Width of the largest character. | |
Material | material |
Material used by this font. | |
Texture2D | gradientTexture |
Reference to gradient texture. | |
bool | textureGradients |
Does this font have gradients? Used to determine if second uv channel is necessary. | |
int | gradientCount = 1 |
Number of gradients in list. Used to determine how large the gradient uvs are and the offsets into the gradient lookup texture. | |
float | invOrthoSize = 1.0f |
The size of the inv ortho size used to generate the sprite collection. | |
float | halfTargetHeight = 1.0f |
Half of the target height used to generate the sprite collection. |
Stores data to draw and display a font.
void tk2dFontData.InitDictionary | ( | ) |
Initializes the dictionary, if it is required.
void tk2dFontData.SetDictionary | ( | Dictionary< int, tk2dFontChar > | dict | ) |
Internal function to set up the dictionary.
Dictionary<int, tk2dFontChar> tk2dFontData.charDict |
Dictionary of characters. This is used when chars is null. Chars is preferred when number of characters is low (< 2048).
Array of tk2dFontChar. If this.useDictionary is true, charDict will be used instead.
string [] tk2dFontData.fontPlatformGUIDs = null |
Returns an array of GUIDs, each referring to an actual tk2dFontData object This object contains the actual font for the platform.
string [] tk2dFontData.fontPlatforms = null |
Returns an array of platform names.
int tk2dFontData.gradientCount = 1 |
Number of gradients in list. Used to determine how large the gradient uvs are and the offsets into the gradient lookup texture.
Texture2D tk2dFontData.gradientTexture |
Reference to gradient texture.
float tk2dFontData.halfTargetHeight = 1.0f |
Half of the target height used to generate the sprite collection.
float tk2dFontData.invOrthoSize = 1.0f |
The size of the inv ortho size used to generate the sprite collection.
Array of tk2dFontKerning
Width of the largest character.
float tk2dFontData.lineHeight |
The height of the line in local units.
Material tk2dFontData.material |
Material used by this font.
Does this font have gradients? Used to determine if second uv channel is necessary.
bool tk2dFontData.useDictionary = false |
Whether this font uses the dictionary or an array for character lookup.