cee::vis::TrueTypeFont
-
class TrueTypeFont : public Font
A true type font used for text drawing.
This font is loaded from a file.
Public Functions
-
TrueTypeFont(const Str &filename, unsigned int pointSize)
Creates a true type font using the given font file name and point size.
A valid .ttf file must be provided.
-
virtual unsigned int pointSize() const
Returns the point size of the true type font.
-
void setPointSize(unsigned int size)
Sets the point size of the true type font.
-
bool isLoaded() const
Returns true if the true type font is properly loaded. (E.g. file not found, illegal format etc.)
-
TrueTypeFont(const Str &filename, unsigned int pointSize)