A class with encapsulated a font loaded from disk with a given size.
|
| | ~DtFont () |
| |
| const std::string & | fontName () const |
| |
| bool | attachFile (const char *fontFilePath) |
| |
| void | setFreeTypeLoadFlags (unsigned int flags) |
| |
| bool | setCharacterMap (unsigned int encoding) |
| |
| const unsigned int * | characterMaps () |
| |
| unsigned int | characterMapCount () const |
| |
| const DtFreeTypeFace & | freeTypeFace () const |
| |
| bool | setFaceSize (const unsigned int size) |
| |
| unsigned int | faceSize () const |
| |
| float | globalAscender () const |
| |
| float | globalDescender () const |
| |
| virtual float | lineHeight () const |
| |
| virtual DtBoundingBox | calculateBoundingBox (const DtPen &pen, const DtUnicode &string, unsigned int pos=0, int len=-1) |
| |
| virtual Dt2dPoint | calculateGlyphSize (const DtPen &pen, const DtUnicode &string, unsigned int pos=0, int len=-1) |
| |
| float | calculateAdvance (const DtPen &pen, const DtUnicode &string, unsigned int pos=0, int len=-1) |
| |
| void | releaseResources () |
| |
| bool | isValid () const |
| |
| bool | checkError () const |
| |
| DtGlyph * | findOrLoadGlyphForRendering (DtGlyphRenderer &renderer, const unsigned int characterCode, bool characterCodeIsIndex=false) |
| |
| DtGlyph * | findOrLoadGlyph (const unsigned int chr) |
| |
| unsigned int | indexInFont (const unsigned int characterCode) const |
| |
| Dt2dPoint | calculateKerning (unsigned int index1, unsigned int index2) |
| |
| | DtFontInterface ()=default |
| |
| | ~DtFontInterface () |
| |