#include <truetypefont.h>


Public Member Functions | |
| TrueTypeFont (const std::string &filename, int32_t size) | |
| virtual | ~TrueTypeFont () |
| virtual int32_t | getWidth (const std::string &text) const |
| virtual int32_t | getHeight () const |
SDL True Type Font implementation of Font. It uses the SDL_ttf library to display True Type Fonts with SDL.
NOTE: You must initialize the SDL_ttf library before using this class. Also, remember to call the SDL_ttf libraries quit function.
Original author of this class is Walluce Pinkham. Some modifications made by the Guichan team, and additonal modifications by the FIFE team.
Definition at line 51 of file truetypefont.h.
| FIFE::TrueTypeFont::TrueTypeFont | ( | const std::string & | filename, | |
| int32_t | size | |||
| ) |
Constructor.
| filename | the filename of the True Type Font. | |
| size | the size the font should be in. |
Definition at line 41 of file truetypefont.cpp.
| FIFE::TrueTypeFont::~TrueTypeFont | ( | ) | [virtual] |
Destructor.
Definition at line 54 of file truetypefont.cpp.
| int32_t FIFE::TrueTypeFont::getHeight | ( | ) | const [virtual] |
gets height of this font
Implements FIFE::IFont.
Definition at line 65 of file truetypefont.cpp.
References FIFE::FontBase::getRowSpacing().
| int32_t FIFE::TrueTypeFont::getWidth | ( | const std::string & | text | ) | const [virtual] |
1.7.1