24 class DtGlyphRenderer;
25 class DtGLFontManager;
38 const std::string& fontName()
const;
41 bool attachFile(
const char* fontFilePath);
44 void setFreeTypeLoadFlags(
unsigned int flags);
47 bool setCharacterMap(
unsigned int encoding);
50 const unsigned int* characterMaps();
53 unsigned int characterMapCount()
const;
59 bool setFaceSize(
const unsigned int size);
62 unsigned int faceSize()
const;
65 float globalAscender()
const;
68 float globalDescender()
const;
71 virtual float lineHeight()
const;
75 const DtUnicode&
string,
unsigned int pos = 0,
int len = -1);
79 const DtUnicode&
string,
unsigned int pos = 0,
int len = -1);
83 unsigned int pos = 0,
int len = -1);
86 void releaseResources();
92 bool checkError()
const;
97 bool characterCodeIsIndex =
false);
100 DtGlyph* findOrLoadGlyph(
const unsigned int chr);
104 unsigned int indexInFont(
const unsigned int characterCode)
const;
107 Dt2dPoint calculateKerning(
unsigned int index1,
unsigned int index2);