BitmapFont class

A bitmap font that can be used with drawString and drawChar functions. You can generate a font files from a program like: http://kvazars.com/littera

Constructors

BitmapFont.fromFnt(String fnt, Image page)
Decode a BitmapFont from the contents of font definition (.fnt) file, and an Image that stores the font map.
BitmapFont.fromZip(List<int> fileData)
Decode a BitmapFont from the contents of a zip file that stores the .fnt font definition and associated PNG images.

Properties

antialias bool
read / write
base int
read / write
bold bool
read / write
characters Map<int, BitmapFontCharacter>
read / write
charset String
read / write
face String
read / write
italic bool
read / write
kernings Map<int, Map<int, int>>
read / write
lineHeight int
read / write
outline bool
read / write
packed bool
read / write
padding List<int>
read / write
pages int
read / write
scaleH num
read / write
scaleW num
read / write
size int
read / write
smooth bool
read / write
spacing List<int>
read / write
stretchH int
read / write
unicode String
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

characterXAdvance(String ch) int
Get the amount the writer x position should advance after drawing the character ch.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited