Font

Generic Font struct containing all information from a BMFont file

Members

Functions

getChar
Char getChar(dchar id)
getKerning
short getKerning(dchar first, dchar second)
toBinary
ubyte[] toBinary()

Creates a binary representation of this font

toString
string toString()

Creates a text representation of this font

Structs

Char
struct Char

Struct containing information about one character

Common
struct Common

Struct containing common information about the font used for rendering

Info
struct Info

Info struct containing meta information about the exported font and export settings

Kerning
struct Kerning

Struct containing the kerning amount between 2 characters

Variables

chars
Char[] chars;

Array containing information about all characters

common
Common common;

Struct containing common information about the font used for rendering

fileVersion
ubyte fileVersion;

Version of the file

info
Info info;

Info struct containing meta information about the exported font and export settings

kernings
Kerning[] kernings;

Array containing all kerning pairs between characters which are not zero

pages
string[] pages;

Array of page file locations

type
FontType type;

Type of the font data

Meta