#include <ufontrenderer.hpp>
Inheritance diagram for ufo::UFontRenderer:
Public Member Functions | |
virtual int | drawString (UGraphics *g, const char *text, unsigned int nChar, int xA=0, int yA=0)=0 |
virtual void | beginDrawing (UGraphics *g)=0 |
virtual void | endDrawing (UGraphics *g)=0 |
virtual const UFontMetrics * | getFontMetrics () const =0 |
virtual UFontInfo | getFontInfo () const =0 |
virtual std::string | getSystemName () const =0 |
Usually this class is not used directly. Use instead the graphics object.
|
If you have to draw several strings after each other, you can optimize the drawing with using beginDrawing before and endDrawing at the end. You should not call any other method which changes the drawing state within one enclosing block. Example: beginDrawing(); drawString(line1, strlen(line1), 0, 0); drawString(line1, strlen(line1), lineHeight, 0); endDrawing(); Implemented in ufo::UTextureFontRenderer, ufo::UGL_BuiltinFontRenderer, and ufo::UGL_TextureFontRenderer.
|
|
Draws the string at the given position
Implemented in ufo::UTextureFontRenderer, ufo::UGL_BuiltinFontRenderer, and ufo::UGL_TextureFontRenderer.
|
|
Ends the drawing block started with beginDrawing. Implemented in ufo::UTextureFontRenderer, ufo::UGL_BuiltinFontRenderer, and ufo::UGL_TextureFontRenderer.
|
|
Returns a font info object which describes several font attributes Implemented in ufo::UTextureFontRenderer, ufo::UGL_BuiltinFontRenderer, and ufo::UGL_TextureFontRenderer.
|
|
Returns the font metrics object for this font. Implemented in ufo::UTextureFontRenderer, ufo::UGL_BuiltinFontRenderer, and ufo::UGL_TextureFontRenderer.
|
|
The system dependent name of the used font. Implemented in ufo::UTextureFontRenderer, ufo::UGL_BuiltinFontRenderer, and ufo::UGL_TextureFontRenderer.
|