Catlike Coding
Unity Code Documentation
Public Member Functions | Public Attributes | List of all members
CatlikeCoding.TextBox.BitmapFontChar Class Reference

Definition of a character in a bitmap font. More...

Public Member Functions

float GetKerning (char nextChar)
 Get the kerning between this character and another following it. More...
 

Public Attributes

float advance
 Amount to advance the caret. More...
 
float height
 Sprite height. More...
 
int id
 Identifier, which is equal to the UTF-16 code of the represented character. More...
 
int[] kerningIds
 Identifiers of characters this character has kernings for. More...
 
float[] kernings
 Kerning amounts, corresponding to kerningIds. More...
 
float uMax
 Maximum U texture coordinate value. More...
 
float uMin
 Minimum U texture coordinate value. More...
 
float vMax
 Maximum V texture coordinate value. More...
 
float vMin
 Minimum V texture coordinate value. More...
 
float width
 Sprite width. More...
 
float xOffset
 Sprite X offset relative to caret. More...
 
float yOffset
 Sprite Y offset relative to caret. More...
 

Detailed Description

Definition of a character in a bitmap font.

Member Function Documentation

float CatlikeCoding.TextBox.BitmapFontChar.GetKerning ( char  nextChar)

Get the kerning between this character and another following it.

Parameters
nextCharCharacter following this one.
Returns
Kerning, zero if none.

Member Data Documentation

float CatlikeCoding.TextBox.BitmapFontChar.advance

Amount to advance the caret.

float CatlikeCoding.TextBox.BitmapFontChar.height

Sprite height.

int CatlikeCoding.TextBox.BitmapFontChar.id

Identifier, which is equal to the UTF-16 code of the represented character.

int [] CatlikeCoding.TextBox.BitmapFontChar.kerningIds

Identifiers of characters this character has kernings for.

float [] CatlikeCoding.TextBox.BitmapFontChar.kernings

Kerning amounts, corresponding to kerningIds.

float CatlikeCoding.TextBox.BitmapFontChar.uMax

Maximum U texture coordinate value.

float CatlikeCoding.TextBox.BitmapFontChar.uMin

Minimum U texture coordinate value.

float CatlikeCoding.TextBox.BitmapFontChar.vMax

Maximum V texture coordinate value.

float CatlikeCoding.TextBox.BitmapFontChar.vMin

Minimum V texture coordinate value.

float CatlikeCoding.TextBox.BitmapFontChar.width

Sprite width.

float CatlikeCoding.TextBox.BitmapFontChar.xOffset

Sprite X offset relative to caret.

float CatlikeCoding.TextBox.BitmapFontChar.yOffset

Sprite Y offset relative to caret.