Public Types |
typedef std::vector<float> | size_list_t |
Public Methods |
| Font () |
| Font (const Font &font) |
| Font (const font_properties &sProps) |
| Font (const std::string &cConfigName) |
void | AddRef () |
void | Release () |
status_t | SetProperties (const font_properties &sProps) |
status_t | SetProperties (const std::string &cConfigName) |
status_t | SetFamilyAndStyle (const char *pzFamily, const char *pzStyle) |
void | SetSize (float vSize) |
void | SetShear (float vShear) |
void | SetRotation (float vRotation) |
void | SetSpacing (int nSpacing) |
void | SetEncoding (int nEncoding) |
void | SetFace (uint16 nFace) |
void | SetFlags (uint32 nFlags) |
status_t | SetProperties (float vSize, float vShear=0.0f, float vRotation=0.0f) |
void | GetFamilyAndStyle (const char *pzFamily, const char *pzStyle) const |
float | GetSize () const |
float | GetShear () const |
float | GetRotation () const |
int | GetSpacing () const |
int | GetEncoding () const |
int | GetFace () const |
uint32 | GetFlags () const |
font_direction | GetDirection () const |
void | GetTruncatedStrings (const char *stringArray[], int32 numStrings, uint32 mode, float width, char *resultArray[]) const |
float | GetStringWidth (const char *pzString) const |
float | GetStringWidth (const char *pzString, int nLength) const |
float | GetStringWidth (const std::string &pzString) const |
void | GetStringWidths (const char **apzStringArray, const int *anLengthArray, int nStringCount, float *avWidthArray) const |
int | GetStringLength (const char *pzString, float vWidth, bool bIncludeLast=false) const |
int | GetStringLength (const char *pzString, int nLength, float vWidth, bool bIncludeLast=false) const |
int | GetStringLength (const std::string &cString, float vWidth, bool bIncludeLast=false) const |
void | GetStringLengths (const char **apzStringArray, const int *anLengthArray, int nStringCount, float vWidth, int anMaxLengthArray[], bool bIncludeLast=false) const |
void | GetHeight (font_height *psHeight) const |
int | GetFontID (void) const |
Static Public Methods |
status_t | GetConfigNames (std::vector< string > *pcTable) |
| Get a list of default font names. More...
|
status_t | GetDefaultFont (const std::string &cName, font_properties *psProps) |
| Get the properties of a default font. More...
|
status_t | SetDefaultFont (const std::string &cName, const font_properties &sProps) |
| Set the properties of a default font. More...
|
status_t | AddDefaultFont (const std::string &cName, const font_properties &sProps) |
| Add a default font, or modify one if it already exists. More...
|
int | GetFamilyCount () |
| Get number of installed font families. More...
|
status_t | GetFamilyInfo (int nIndex, char *pzFamily) |
| Get the name of a given font family. More...
|
int | GetStyleCount (const char *pzFamily) |
| Get number of styles in a given family. More...
|
status_t | GetStyleInfo (const char *pzFamily, int nIndex, char *pzStyle, uint32 *pnFlags=NULL) |
| Get info about a given font style. More...
|
status_t | GetBitmapSizes (const std::string &cFamily, const std::string &cStyle, size_list_t *pcList) |
bool | Rescan () |
Friends |
class | View |