#include <BitmapFont.h>
◆ BitmapFont()
◆ clear()
Forget everything read from a .fnt file.
parseFont ADDS to what is already here – it has no clear of its own, and mChar and mKerning are maps, so parsing a second font over a first leaves the union of the two and a glyph count that only ever grows. Anything that re-reads a font has to come through here first.
◆ getCharacter()
◆ getCharacterCount()
| U32 getCharacterCount |
( |
void | | ) |
const |
|
inline |
How many glyphs the font actually holds.
Const where getCharacter above cannot be: mChar[charID] on a std::map inserts a default-constructed character for a glyph the font does not have, and size() does not.
◆ getKerning()
| const S16 getKerning |
( |
U16 | first, |
|
|
U16 | second ) |
|
inline |
◆ getSizeRatio()
| const F32 getSizeRatio |
( |
const F32 | size | ) |
|
|
inline |
◆ LoadTexture()
◆ parseFont()
| bool parseFont |
( |
Stream & | io_rStream | ) |
|
◆ mBaseline
◆ mLineHeight
◆ mPageName
| std::vector<StringTableEntry> mPageName |
◆ mSize
◆ mTexture
The documentation for this class was generated from the following files:
- bitmapFont/BitmapFont.h
- bitmapFont/BitmapFont.cc