Detailed Description

Used when an SPA is acting as a bitmap font. Holds info for a particular character. In this case, ID is charcode.

Inheritance diagram for Spa.SPACharacter:
Spa.SPAMapEntry

Public Member Functions

 SPACharacter (SPASprite sprite, SPAReader reader)
 Creates a character map entry, loading the coords from the given reader. More...
 
void AddCharcode (int cc)
 Adds an additional charcode to this character. More...
 
void AddKerningPair (SPACharacter beforeThis, int value)
 Adds the given character as a kerning pair with this. More...
 
- Public Member Functions inherited from Spa.SPAMapEntry
 SPAMapEntry (SPASprite sprite, SPAReader reader)
 Creates a map entry, loading the coords from the given reader. More...
 

Public Attributes

int XOffset
 The characters x offset. More...
 
int YOffset
 The characters y offset. More...
 
int Advance
 The amount to advance by when laying out this character. More...
 
List< int > AdditionalCharcodes
 A set of additional charcodes. More...
 
Dictionary< SPACharacter, int > Kerning
 A group of kerning pairs and their offsets. More...
 
- Public Attributes inherited from Spa.SPAMapEntry
int ID
 The ID of this entry. Usually a Unicode charcode. More...
 
AtlasLocation Location
 The location of this entry. More...
 

Properties

int SpriteSize [get]
 Gets the size of the sprite. More...
 
int Charcode [get]
 Convinience mapping for the charcode. More...
 

Constructor & Destructor Documentation

Spa.SPACharacter.SPACharacter ( SPASprite  sprite,
SPAReader  reader 
)
inline

Creates a character map entry, loading the coords from the given reader.

Member Function Documentation

void Spa.SPACharacter.AddCharcode ( int  cc)
inline

Adds an additional charcode to this character.

void Spa.SPACharacter.AddKerningPair ( SPACharacter  beforeThis,
int  value 
)
inline

Adds the given character as a kerning pair with this.

Member Data Documentation

List<int> Spa.SPACharacter.AdditionalCharcodes

A set of additional charcodes.

int Spa.SPACharacter.Advance

The amount to advance by when laying out this character.

Dictionary<SPACharacter,int> Spa.SPACharacter.Kerning

A group of kerning pairs and their offsets.

int Spa.SPACharacter.XOffset

The characters x offset.

int Spa.SPACharacter.YOffset

The characters y offset.

Property Documentation

int Spa.SPACharacter.Charcode
get

Convinience mapping for the charcode.

int Spa.SPACharacter.SpriteSize
get

Gets the size of the sprite.