A font class for using true type fonts.
Inheritance:
Public Methods
-
TTrueTypeFont()
-
TTrueTypeFont(const std::string& filename)
Inherited from TFont:
Public Methods
-
virtual void Open(const std::string& filename)
-
virtual void Optimize(TFontAttr* List = NULL, int n = 0)
-
virtual int GetHeight(const TFontAttr&)
-
virtual int GetAscent(const TFontAttr&)
-
virtual int GetDescent(const TFontAttr&)
-
virtual int GetLineSkip(const TFontAttr&)
-
virtual void GetTextSize(const std::string& text, const TFontAttr&, int& width, int& height)
-
static TFont* LoadFont(const std::string& filename)
Public Members
-
enum Font style flags
Protected Methods
-
virtual void DrawString(SDL_Surface*, int X, int Y, const std::string& text, TRect* ClipRect, const TFontAttr& attr = DefaultFontAttr)
Documentation
A font class for using true type fonts. I don't suggest using it directly.
Instead, use TFontList.
- TTrueTypeFont()
- TTrueTypeFont(const std::string& filename)
- This class has no child classes.
- See Also:
- TFont, TFontList
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.