#include <ufont.hpp>
Inheritance diagram for ufo::UFont:
Public Member Functions | |
UFont () | |
UFont (UFontInfo::Family family, float pointSize, int weight=UFontInfo::Normal, int style=UFontInfo::Plain, UFontInfo::Encoding encoding=UFontInfo::Encoding_Default) | |
UFont (const std::string &face, float pointSize, int weight=UFontInfo::Normal, int style=UFontInfo::Plain, UFontInfo::Encoding encoding=UFontInfo::Encoding_Default) | |
UFont (const UFontInfo &fontInfo) | |
UFont (UFontRenderer *renderer) | |
UFont (const UFont &font) | |
UFont & | operator= (const UFont &font) |
UFontRenderer * | getRenderer () const |
const UFontMetrics * | getFontMetrics () const |
void | setFamiliy (UFontInfo::Family family) |
void | setFontFace (const std::string &face) |
std::string | getFontFace () const |
void | setPointSize (float pointSize) |
float | getPointSize () const |
void | setWeight (int weight) |
int | getWeight () const |
void | setStyle (int flag) |
int | getStyle () const |
void | setEncoding (UFontInfo::Encoding encoding) |
UFontInfo::Encoding | getEncoding () const |
Static Public Member Functions | |
void | clearCache () |
Protected Member Functions | |
void | queryAndLoad (const UFontInfo &info) |
void | dispose () |
It uses the active font plugin to create new font renderers according to its attributes. The preferred way to create font with a specific font face is to use one of the predefined font faces. Alternatively, you may use an explicit string literal defining your font face This class may use caching of already existing font renderers.
|
Creates a new font object using the default font renderer. |
|
Creates a new font and chooses an appropriate font renderer. The font renderer may be internally cached.
|
|
Creates a new font and chooses an appropriate font renderer. The font renderer may be internally cached.
|
|
Creates a new font and chooses an appropriate font renderer. The font renderer may be internally cached.
|
|
Constructs a font object with the given font renderer. The font renderer will not be registered at the cache. |
|
Explicit copy constructor |
|
Disposes the font renderer. |
|
Returns the font face name for this font
|
|
Returns a font metrics object which describes the font extents. |
|
Returns the point size rounded to integer |
|
Returns the font renderer used to draw the character strings. |
|
The font style is described by an integer
|
|
Queries the toolkit for the font info struct, searches in the font cache and creates a new font renderer on no results. |
|
Sets the character encoding which should be used to interpret character strings.
|
|
Sets the font family. May create a new font renderer. |
|
Sets the point size of this font. May create a new font renderer object |