Package | org.flixel |
Class | public class FlxBitmapFont |
Inheritance | FlxBitmapFont Object |
Property | Defined By | ||
---|---|---|---|
height : uint
The height of the font in pixels
| FlxBitmapFont | ||
horizontalPadding : uint
The amount of space between characters in pixels
| FlxBitmapFont | ||
imgDefaultFont : Class [static] | FlxBitmapFont | ||
pixels : BitmapData
The bitmap onto which the font is loaded
| FlxBitmapFont | ||
rects : Array
The bounding boxes of each character
| FlxBitmapFont | ||
verticalPadding : uint
The amount of space between lines in pixels
| FlxBitmapFont |
Method | Defined By | ||
---|---|---|---|
FlxBitmapFont(Image:* = null, Height:uint = 5, HorizontalPadding:uint = 1, VerticalPadding:uint = 5, Alphabet:String = !"#$%&'()*+,-./0123456789:, offsets:Array = <=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~)
Sets the font face to use. | FlxBitmapFont | ||
getTextWidth(s:String):uint | FlxBitmapFont | ||
getWidthForChar(currentChar:int):uint | FlxBitmapFont |
height | property |
public var height:uint
The height of the font in pixels
horizontalPadding | property |
public var horizontalPadding:uint
The amount of space between characters in pixels
imgDefaultFont | property |
public static var imgDefaultFont:Class
pixels | property |
public var pixels:BitmapData
The bitmap onto which the font is loaded
rects | property |
public var rects:Array
The bounding boxes of each character
verticalPadding | property |
public var verticalPadding:uint
The amount of space between lines in pixels
FlxBitmapFont | () | Constructor |
public function FlxBitmapFont(Image:* = null, Height:uint = 5, HorizontalPadding:uint = 1, VerticalPadding:uint = 5, Alphabet:String = !"#$%&'()*+,-./0123456789:, offsets:Array = <=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~)
Sets the font face to use.
ParametersImage:* (default = null ) — The font image to use
| |
Height:uint (default = 5 ) — The height of the font in pixels
| |
HorizontalPadding:uint (default = 1 ) — Padding between characters in pixels
| |
VerticalPadding:uint (default = 5 ) — Padding between lines in pixels
| |
Alphabet:String (default = !"#$%&'()*+,-./0123456789: ) — The alphabet represented by this font
| |
offsets:Array (default = <=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ )
|
getTextWidth | () | method |
public function getTextWidth(s:String):uint
Parameters
s:String |
uint |
getWidthForChar | () | method |
public function getWidthForChar(currentChar:int):uint
Parameters
currentChar:int |
uint |