Inheritance Graph
graph BT
BitmapFont
BitmapFont --> AbstractFont
click BitmapFont "classGUI_1_1BitmapFont"
click AbstractFont "classGUI_1_1AbstractFont"
Description
Classes
Public Types
Public Static Functions
Public Functions
|
|
|
|
|
BitmapFont( Util::Reference < ImageData > bitmap, int lineHeight) |
|
|
|
~BitmapFont() |
|
|
void |
addGlyph(uint32_t characterCode, uint32_t width, uint32_t height, const Geometry::Vec2i & textureOffset, const Geometry::Vec2i & screenOffset, int xAdvance) |
|
|
const Glyph & |
getGlyph(uint32_t characterCode) const |
|
|
const Util::Reference < Util::Bitmap > |
getBitmap() const |
|
|
void |
setKerning(uint32_t first, uint32_t second, int16_t amount) |
|
|
void |
setTabWidth(uint32_t s) |
|
|
void |
enable() |
|
|
void |
disable() |
|
|
void |
renderText(const Geometry::Vec2 & pos, const std::string & text, const Util::Color4ub & color) |
|
|
Geometry::Vec2 |
getRenderedTextSize(const std::string & text) |
Documentation
typedef
GUI::BitmapFont::typefaceMap_t
Defined in GUI/Base/Fonts/BitmapFont.h:72
function
GUI::BitmapFont::createFont
Load a .ttf or .otf file. Returns a BitmapFont or throws an exception.
Defined in GUI/Base/Fonts/BitmapFont.h:35
function
GUI::BitmapFont::BitmapFont
Defined in GUI/Base/Fonts/BitmapFont.h:74
function
GUI::BitmapFont::~BitmapFont
Defined in GUI/Base/Fonts/BitmapFont.h:75
function
GUI::BitmapFont::addGlyph
Defined in GUI/Base/Fonts/BitmapFont.h:77
function
GUI::BitmapFont::getGlyph
Defined in GUI/Base/Fonts/BitmapFont.h:79
function
GUI::BitmapFont::getBitmap
Defined in GUI/Base/Fonts/BitmapFont.h:84
function
GUI::BitmapFont::setKerning
|
|
|
|
|
|
void setKerning( |
uint32_t |
first, |
|
uint32_t |
second, |
|
int16_t |
amount |
) |
|
|
Defined in GUI/Base/Fonts/BitmapFont.h:87
function
GUI::BitmapFont::setTabWidth
Defined in GUI/Base/Fonts/BitmapFont.h:88
function
GUI::BitmapFont::enable
Defined in GUI/Base/Fonts/BitmapFont.h:91
function
GUI::BitmapFont::disable
Defined in GUI/Base/Fonts/BitmapFont.h:92
function
GUI::BitmapFont::renderText
Defined in GUI/Base/Fonts/BitmapFont.h:93
function
GUI::BitmapFont::getRenderedTextSize
Defined in GUI/Base/Fonts/BitmapFont.h:94