C# Class tk2dFontData, Malisse

Inheritance: MonoBehaviour
显示文件 Open project: Collegiennes/Malisse Class Usage Examples

Public Properties

Property Type Description
charDict tk2dFontChar>.Dictionary
chars tk2dFontChar[],
fontPlatformGUIDs string[]
fontPlatforms string[]
gradientCount int
gradientTexture UnityEngine.Texture2D
hasPlatformData bool
kerning tk2dFontKerning[],
largestWidth float
lineHeight float
managedFont bool
material Material
needMaterialInstance bool
spriteCollection tk2dSpriteCollectionData,
texelSize Vector2
textureGradients bool
useDictionary bool

Public Methods

Method Description
Init ( ) : void
InitDictionary ( ) : void

Initializes the dictionary, if it is required

OnDestroy ( ) : void
ResetPlatformData ( ) : void
SetDictionary ( tk2dFontChar>.Dictionary dict ) : void

Internal function to set up the dictionary

Method Details

Init() public method

public Init ( ) : void
return void

InitDictionary() public method

Initializes the dictionary, if it is required
public InitDictionary ( ) : void
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

ResetPlatformData() public method

public ResetPlatformData ( ) : void
return void

SetDictionary() public method

Internal function to set up the dictionary
public SetDictionary ( tk2dFontChar>.Dictionary dict ) : void
dict tk2dFontChar>.Dictionary
return void

Property Details

charDict public_oe property

Dictionary of characters. This is used when chars is null. Chars is preferred when number of characters is low (< 2048).
public Dictionary charDict
return tk2dFontChar>.Dictionary

chars public_oe property

Array of tk2dFontChar. If this.useDictionary is true, charDict will be used instead.
public tk2dFontChar[], chars
return tk2dFontChar[],

fontPlatformGUIDs public_oe property

Returns an array of GUIDs, each referring to an actual tk2dFontData object This object contains the actual font for the platform.
public string[] fontPlatformGUIDs
return string[]

fontPlatforms public_oe property

Returns an array of platform names.
public string[] fontPlatforms
return string[]

gradientCount public_oe property

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

gradientTexture public_oe property

Reference to gradient texture
public Texture2D,UnityEngine gradientTexture
return UnityEngine.Texture2D

hasPlatformData public_oe property

public bool hasPlatformData
return bool

kerning public_oe property

Array of tk2dFontKerning
public tk2dFontKerning[], kerning
return tk2dFontKerning[],

largestWidth public_oe property

Width of the largest character
public float largestWidth
return float

lineHeight public_oe property

The height of the line in local units.
public float lineHeight
return float

managedFont public_oe property

public bool managedFont
return bool

material public_oe property

Material used by this font
public Material material
return Material

needMaterialInstance public_oe property

public bool needMaterialInstance
return bool

spriteCollection public_oe property

public tk2dSpriteCollectionData, spriteCollection
return tk2dSpriteCollectionData,

texelSize public_oe property

public Vector2 texelSize
return Vector2

textureGradients public_oe property

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

useDictionary public_oe property

Whether this font uses the dictionary or an array for character lookup.
public bool useDictionary
return bool