![]() |
VR-Vantage API Documentation
|
A class with encapsulated a font loaded from disk with a given size. More...
Public Types | |
| enum | TextAlignement { AlignLeft, AlignCenter, AlignRight, AlignJustify } |
Public Member Functions | |
| ~DtFont () | |
| DTOR. | |
| const std::string & | fontName () const |
| Get the name. | |
| bool | attachFile (const char *fontFilePath) |
| Attach auxilliary file to font e.g font metrics. | |
| void | setFreeTypeLoadFlags (unsigned int flags) |
| Set the FreeType load flags. | |
| bool | setCharacterMap (unsigned int encoding) |
| Set the FreeType characte encoding map. | |
| const unsigned int * | characterMaps () |
| Get the list of character maps. | |
| unsigned int | characterMapCount () const |
| Get the number of charater maps. | |
| bool | setFaceSize (const unsigned int size) |
| unsigned int | faceSize () const |
| float | globalAscender () const |
| float | globalDescender () const |
| float | lineHeight () const |
| DtBoundingBox | calculateBoundingBox (const DtPen &pen, const DtUnicode &string, unsigned int pos=0, int len=-1) |
| Calculate the bounding box for a string. | |
| DtPoint | calculateGlyphSize (const DtPen &pen, const DtUnicode &string, unsigned int pos=0, int len=-1) |
| Calculate the bounding box for a string. | |
| float | calculateAdvance (const DtPen &pen, const DtUnicode &string, unsigned int pos=0, int len=-1) |
| void | renderString (DtGlyphRenderer &renderer, DtPen &pen, const DtUnicode &string, unsigned int pos=0, int len=-1) |
| void | renderString (DtGlyphRenderer &renderer, DtPen &pen, TextAlignement alignment, unsigned int lineWidth, const DtUnicode &string, unsigned int pos=0, int len=-1) |
| void | releaseResources () |
Protected Member Functions | |
| DtFont (DtFontManager &fm, const std::string &fontFilePath) | |
| CTOR create and load a font. | |
Protected Attributes | |
| FontPrivate * | myImpl |
| Internal FTGL FTFont implementation object. For private use only. | |
Friends | |
| class | DtFontManager |
A class with encapsulated a font loaded from disk with a given size.
| makVrv::DtFont::~DtFont | ( | ) |
DTOR.
|
protected |
CTOR create and load a font.
| const std::string& makVrv::DtFont::fontName | ( | ) | const |
Get the name.
| bool makVrv::DtFont::attachFile | ( | const char * | fontFilePath | ) |
Attach auxilliary file to font e.g font metrics.
| void makVrv::DtFont::setFreeTypeLoadFlags | ( | unsigned int | flags | ) |
Set the FreeType load flags.
| bool makVrv::DtFont::setCharacterMap | ( | unsigned int | encoding | ) |
Set the FreeType characte encoding map.
| const unsigned int* makVrv::DtFont::characterMaps | ( | ) |
Get the list of character maps.
| unsigned int makVrv::DtFont::characterMapCount | ( | ) | const |
Get the number of charater maps.
| bool makVrv::DtFont::setFaceSize | ( | const unsigned int | size | ) |
| unsigned int makVrv::DtFont::faceSize | ( | ) | const |
| float makVrv::DtFont::globalAscender | ( | ) | const |
| float makVrv::DtFont::globalDescender | ( | ) | const |
| float makVrv::DtFont::lineHeight | ( | ) | const |
| DtBoundingBox makVrv::DtFont::calculateBoundingBox | ( | const DtPen & | pen, |
| const DtUnicode & | string, | ||
| unsigned int | pos = 0, |
||
| int | len = -1 |
||
| ) |
Calculate the bounding box for a string.
| DtPoint makVrv::DtFont::calculateGlyphSize | ( | const DtPen & | pen, |
| const DtUnicode & | string, | ||
| unsigned int | pos = 0, |
||
| int | len = -1 |
||
| ) |
Calculate the bounding box for a string.
| float makVrv::DtFont::calculateAdvance | ( | const DtPen & | pen, |
| const DtUnicode & | string, | ||
| unsigned int | pos = 0, |
||
| int | len = -1 |
||
| ) |
| void makVrv::DtFont::renderString | ( | DtGlyphRenderer & | renderer, |
| DtPen & | pen, | ||
| const DtUnicode & | string, | ||
| unsigned int | pos = 0, |
||
| int | len = -1 |
||
| ) |
| void makVrv::DtFont::renderString | ( | DtGlyphRenderer & | renderer, |
| DtPen & | pen, | ||
| TextAlignement | alignment, | ||
| unsigned int | lineWidth, | ||
| const DtUnicode & | string, | ||
| unsigned int | pos = 0, |
||
| int | len = -1 |
||
| ) |
| void makVrv::DtFont::releaseResources | ( | ) |
|
friend |
|
protected |
Internal FTGL FTFont implementation object. For private use only.