#include <fontprovider.h>
Public Types | |
enum | FontType { kSmallFont, kBigFont, kCustomFont } |
Public Member Functions | |
const Graphics::Font * | getScaledFont (FontType type, int32 customFontIndex) |
uint | getScaledFontHeight (FontType type, int32 customFontIndex) |
uint | getOriginalFontHeight (FontType type, int32 customFontIndex) |
void | initFonts () |
The font provider offers a set of predefined fonts for the game to use
const Graphics::Font* Stark::FontProvider::getScaledFont | ( | FontType | type, |
int32 | customFontIndex | ||
) |
Request a font matching the specified parameters
uint Stark::FontProvider::getScaledFontHeight | ( | FontType | type, |
int32 | customFontIndex | ||
) |
Get the height of the font matching the specified parameters
void Stark::FontProvider::initFonts | ( | ) |
Load all the fonts to memory