d2d.font.bmfont
- class BMFont: d2d.font.ifont.IFont;
- Implementation for AngelCode BMFont.
- this(string textureFolder);
- Creates a new BMFont instance with a textureFolder used as base path for texture loading
- @property ref BM.Font handle();
- Handle to underlying
bmfont.Font
handle.
- @property ref Texture[] textures();
- All textures in the BMFont file
- void load(string file, int sizeInPt);
- Loads the font from a binary or text bmfont file.
- @property bool valid();
- Returns true if font has been loaded.
- IText render(string text, float scale = 1.00000F);
- Renders a string to an IText.
- IText renderMultiline(string text, float scale = 1.00000F);
- Renders a multiline string to an IText.
- @property float lineHeight();
- Returns the line height of this font.
- vec2 measureText(string text, float scale = 1.00000F);
- Returns the dimensions of a string with this font.
- vec2 measureTextMultiline(string text, float scale = 1.00000F);
- Returns the dimensions of a multiline string with this font.
Page generated by Ddoc.