NGUI: Next-Gen UI kit  3.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
BMGlyph Class Reference

Glyph structure used by BMFont. For more information see http://www.angelcode.com/products/bmfont/ More...

Public Member Functions

int GetKerning (int previousChar)
 Retrieves the special amount by which to adjust the cursor position, given the specified previous character. More...
 
void SetKerning (int previousChar, int amount)
 Add a new kerning entry to the character (or adjust an existing one). More...
 
void Trim (int xMin, int yMin, int xMax, int yMax)
 Trim the glyph, given the specified minimum and maximum dimensions in pixels. More...
 

Public Attributes

int index
 
int x
 
int y
 
int width
 
int height
 
int offsetX
 
int offsetY
 
int advance
 
int channel
 
List< int > kerning
 

Detailed Description

Glyph structure used by BMFont. For more information see http://www.angelcode.com/products/bmfont/

Member Function Documentation

int BMGlyph.GetKerning ( int  previousChar)

Retrieves the special amount by which to adjust the cursor position, given the specified previous character.

void BMGlyph.SetKerning ( int  previousChar,
int  amount 
)

Add a new kerning entry to the character (or adjust an existing one).

void BMGlyph.Trim ( int  xMin,
int  yMin,
int  xMax,
int  yMax 
)

Trim the glyph, given the specified minimum and maximum dimensions in pixels.

Member Data Documentation

int BMGlyph.advance
int BMGlyph.channel
int BMGlyph.height
int BMGlyph.index
List<int> BMGlyph.kerning
int BMGlyph.offsetX
int BMGlyph.offsetY
int BMGlyph.width
int BMGlyph.x
int BMGlyph.y

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