#include <utexturefont.hpp>
Inheritance diagram for ufo::UTextureFontRenderer:
Public Member Functions | |
UTextureFontRenderer (const UFontInfo &fontInfo) | |
bool | isValid () const |
int | drawString (UGraphics *g, const char *text, unsigned int nChar, int xA=0, int yA=0) |
void | beginDrawing (UGraphics *g) |
void | endDrawing (UGraphics *g) |
void | refresh () |
const UFontMetrics * | getFontMetrics () const |
UFontInfo | getFontInfo () const |
std::string | getSystemName () const |
Static Public Member Functions | |
UPluginBase * | createPlugin () |
void | destroyPlugin (UPluginBase *plugin) |
UFontInfo | queryFont (const UFontInfo &fontInfo) |
std::vector< UFontInfo > | listFonts (const UFontInfo &fontInfo) |
std::vector< UFontInfo > | listFonts () |
|
|
|
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(); Implements ufo::UFontRenderer.
|
|
Draws the string at the given position
Implements ufo::UFontRenderer.
|
|
Ends the drawing block started with beginDrawing. Implements ufo::UFontRenderer.
|
|
Returns a font info object which describes several font attributes Implements ufo::UFontRenderer.
|
|
Returns the font metrics object for this font. Implements ufo::UFontRenderer.
|
|
The system dependent name of the used font. Implements ufo::UFontRenderer.
|
|
Returns true when this font renderer is ready to draw characters. |
|
List all available fonts. |
|
List all matching fonts. |