| Package | starling.text |
| Class | public class BitmapChar |
| Inheritance | BitmapChar Object |
| Property | Defined By | ||
|---|---|---|---|
| charID : int [read-only] The unicode ID of the char. | BitmapChar | ||
| height : Number [read-only] The height of the character in points. | BitmapChar | ||
| texture : Texture [read-only] The texture of the character. | BitmapChar | ||
| width : Number [read-only] The width of the character in points. | BitmapChar | ||
| xAdvance : Number [read-only] The number of points the cursor has to be moved to the right for the next char. | BitmapChar | ||
| xOffset : Number [read-only] The number of points to move the char in x direction on character arrangement. | BitmapChar | ||
| yOffset : Number [read-only] The number of points to move the char in y direction on character arrangement. | BitmapChar | ||
| Method | Defined By | ||
|---|---|---|---|
BitmapChar(id:int, texture:Texture, xOffset:Number, yOffset:Number, xAdvance:Number) Creates a char with a texture and its properties. | BitmapChar | ||
addKerning(charID:int, amount:Number):void Adds kerning information relative to a specific other character ID. | BitmapChar | ||
Creates an image of the char. | BitmapChar | ||
getKerning(charID:int):Number Retrieve kerning information relative to the given character ID. | BitmapChar | ||
| charID | property |
charID:int [read-only] The unicode ID of the char.
public function get charID():int| height | property |
height:Number [read-only] The height of the character in points.
public function get height():Number| texture | property |
texture:Texture [read-only] The texture of the character.
public function get texture():Texture| width | property |
width:Number [read-only] The width of the character in points.
public function get width():Number| xAdvance | property |
xAdvance:Number [read-only] The number of points the cursor has to be moved to the right for the next char.
public function get xAdvance():Number| xOffset | property |
xOffset:Number [read-only] The number of points to move the char in x direction on character arrangement.
public function get xOffset():Number| yOffset | property |
yOffset:Number [read-only] The number of points to move the char in y direction on character arrangement.
public function get yOffset():Number| BitmapChar | () | Constructor |
public function BitmapChar(id:int, texture:Texture, xOffset:Number, yOffset:Number, xAdvance:Number)Creates a char with a texture and its properties.
Parametersid:int | |
texture:Texture | |
xOffset:Number | |
yOffset:Number | |
xAdvance:Number |
| addKerning | () | method |
public function addKerning(charID:int, amount:Number):voidAdds kerning information relative to a specific other character ID.
Parameters
charID:int | |
amount:Number |
| createImage | () | method |
| getKerning | () | method |
public function getKerning(charID:int):NumberRetrieve kerning information relative to the given character ID.
Parameters
charID:int |
Number |