#include <ufontinfo.hpp>
Public Types | |
enum | Family { DefaultFamily = 0, Decorative, Serif, SansSerif, Script, MonoSpaced } |
enum | Weight { AnyWeight = 0, Light = 250, Normal = 400, DemiBold = 600, Bold = 700, Black = 900 } |
enum | Style { AnyStyle = 0, Plain = 1 << 0, Italic = 1 << 1, Underline = 1 << 2, StrikeOut = 1 << 3, AntiAliased = 1 << 4, NotAntiAliased = 1 << 5 } |
enum | Encoding { Encoding_System = 0, Encoding_Default, Encoding_ISO8859_1, Encoding_ISO8859_2, Encoding_ISO8859_3, Encoding_ISO8859_4, Encoding_ISO8859_5, Encoding_ISO8859_6, Encoding_ISO8859_7, Encoding_ISO8859_8, Encoding_ISO8859_9, Encoding_ISO8859_10, Encoding_ISO8859_11, Encoding_ISO8859_12, Encoding_ISO8859_13, Encoding_ISO8859_14, Encoding_ISO8859_15, Encoding_ISO8859_MAX, Encoding_UTF8, Encoding_Unicode } |
Public Member Functions | |
UFontInfo () | |
UFontInfo (const std::string &face, float pointSize, int weight, int style=Plain, Encoding encoding=Encoding_Default) | |
UFontInfo (Family family, float pointSize, int weight, int style=Plain, Encoding encoding=Encoding_Default) | |
UFontInfo (Family family, const std::string &face, float pointSize, int weight, int style, Encoding encoding) | |
unsigned int | hashCode () const |
Public Attributes | |
Family | family |
std::string | face |
float | pointSize |
int | weight |
int | style |
Encoding | encoding |
Static Public Attributes | |
const UFontInfo | nullFont |
Friends | |
std::ostream & | operator<< (std::ostream &os, const UFontInfo &info) |
It is used to query for and load fonts and to get font attributes.
The default way to query for font is to use the UFont class.
If you want to use UFontInfo objects, create them separately via the constructors. You should not access the members of UFontInfo directly.
|
The character encoding. FIXME: very incomplete |
|
Some font families. These font families are logical font descriptors which are mapped to valid font faces by the font renderer. |
|
Some style hints. |
|
The font weight. |
|
Creates the null font info struct. |
|
generates a hash code for this font info |
|
A null font without any font information,i.e. any style |