Font Loader API
load bmfont format
Structs
BmFontTagXml
struct BmFontTagXml {
}
BmFontTagTxt
struct BmFontTagTxt {
}
BmFontTagBin
struct BmFontTagBin {
}
FontInfo
struct FontInfo {
base: Int
line_height: Int
size: Int
}
Glyph
struct Glyph {
ch: Char
height: Int
width: Int
x: Int
x_advance: Int
x_offset: Int
y: Int
y_offset: Int
}
BmFont
struct BmFont {
glyphs: Map<Char, Glyph, 256>
info: FontInfo
}
Distinct Types
BmFontResXml
type BmFontResXml = Res<BmFontTagXml>
BmFontResTxt
type BmFontResTxt = Res<BmFontTagTxt>
BmFontResBin
type BmFontResBin = Res<BmFontTagBin>
how many pixels to advance after each glyph