Contents
Inheritance:
Constructors:
Methods:
loadFontInfo
uint32_t loadFontInfo(const char *filename,AbsCsvData *data)
selectFont
uint32_t selectFont(const char *family,uint16_t cond,uint16_t style,uint16_t weight,uint16_t sz,const char **font,uint32_t *face)
createRenderer
AbsFType *createRenderer(const char *family,uint16_t cond,uint16_t style,uint16_t weight,uint16_t sz)
Constructors
FTypeManager (version 1)
Constructs a helper object for the FreeType library.
Constructor:
FTypeManager()
Factory Method:
AbsFTypeManager *AbsFTypeManagerInterface::createFTypeManager()
Wrapper Class:
FTypeManagerWrapper()
The static method
AbsFTypeManagerInterface::createFTypeManager creates a new instance of class FTypeManager.
Return value:Returns an instance of
FTypeManager.
Methods
update_FontsInfo
Updates the ftype.csv file.
Signature:
uint32_t update_FontsInfo()
loadFontInfo
Loads properties of faces of a font file. For each face a record is added to the csv table
data.
Signature:
uint32_t loadFontInfo(const char *filename,AbsCsvData *data)
Parameters:
| const char * | filename | [IN] | null-terminated filename of a font file |
| AbsCsvData * | data | [IN/OUT] | |
selectFont
Signature:
uint32_t selectFont(const char *family,uint16_t cond,uint16_t style,uint16_t weight,uint16_t sz,const char **font,uint32_t *face)
Parameters:
| const char * | family | [IN] | null-terminated name of the font family |
| uint16_t | cond | | condensed |
| uint16_t | style | | style |
| uint16_t | weight | | weight |
| uint16_t | sz | | size |
| const char ** | font | [OUT] | null-terminated filename of a font file |
| uint32_t * | face | [OUT] | id of the face |
createRenderer
Creates a new font renderer.
Signature:
AbsFType *createRenderer(const char *family,uint16_t cond,uint16_t style,uint16_t weight,uint16_t sz)
Parameters:
| const char * | family | [IN] | null-terminated name of the font family |
| uint16_t | cond | | condensed |
| uint16_t | style | | style |
| uint16_t | weight | | weight |
| uint16_t | sz | | size |
createDefaultRenderer
Returns the default renderer.
Set default_font_filename, default_font_face and default_font_size within the 'main' block of the ini-file.
Signature:
AbsFType *createDefaultRenderer()