tk2dFontData Class Reference

Stores data to draw and display a font. More...

List of all members.

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, tk2dFontCharcharDict
 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.

Detailed Description

Stores data to draw and display a font.


Member Function Documentation

Initializes the dictionary, if it is required.

void tk2dFontData.SetDictionary ( Dictionary< int, tk2dFontChar dict)

Internal function to set up the dictionary.


Member Data Documentation

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.

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.

Number of gradients in list. Used to determine how large the gradient uvs are and the offsets into the gradient lookup texture.

Reference to gradient texture.

Half of the target height used to generate the sprite collection.

The size of the inv ortho size used to generate the sprite collection.

Width of the largest character.

The height of the line in local units.

Material used by this font.

Does this font have gradients? Used to determine if second uv channel is necessary.

Whether this font uses the dictionary or an array for character lookup.