23 class DtGlyphRenderer;
45 const std::string& fontName()
const;
48 bool attachFile(
const char* fontFilePath);
51 void setFreeTypeLoadFlags(
unsigned int flags);
54 bool setCharacterMap(
unsigned int encoding);
57 const unsigned int* characterMaps();
60 unsigned int characterMapCount()
const;
66 bool setFaceSize(
const unsigned int size);
69 unsigned int faceSize()
const;
72 float globalAscender()
const;
75 float globalDescender()
const;
78 float lineHeight()
const;
82 const DtUnicode&
string,
unsigned int pos = 0,
int len = -1);
86 const DtUnicode&
string,
unsigned int pos = 0,
int len = -1);
90 unsigned int pos = 0,
int len = -1);
93 void releaseResources();
99 bool checkError()
const;
104 bool characterCodeIsIndex =
false);
107 DtGlyph* findOrLoadGlyph(
const unsigned int chr);
111 unsigned int indexInFont(
const unsigned int characterCode)
const;
114 Dt2dPoint calculateKerning(
unsigned int index1,
unsigned int index2);