Used when an SPA is acting as a bitmap font. Holds info for a particular character. In this case, ID is charcode.
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... | |
Creates a character map entry, loading the coords from the given reader.
|
inline |
Adds an additional charcode to this character.
|
inline |
Adds the given character as a kerning pair with this.
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.
|
get |
Convinience mapping for the charcode.
|
get |
Gets the size of the sprite.