XLE
v0.02.0
|
Public Member Functions | |
FTFont (FontTexKind kind=FTK_GENERAL) | |
std::pair< const FontChar *, const FontTexture2D * > | GetChar (ucs4 ch) const |
FontTexKind | GetTexKind () |
virtual FT_Face | GetFace () |
virtual FT_Face | GetFace (ucs4) |
virtual bool | Init (const FontDef &fontDef) |
virtual float | Descent () const |
virtual float | Ascent (bool includeAccent) const |
virtual float | LineHeight () const |
virtual void | TouchFontChar (const FontChar *fc) |
virtual Float2 | GetKerning (int prevGlyph, ucs4 ch, int *curGlyph) const |
![]() | |
int | GetSize () |
const char * | GetPath () |
float | StringWidth (const ucs4 *text, int maxLen=-1, float spaceExtra=0.0f, bool outline=false) |
int | CharCountFromWidth (const ucs4 *text, float width, int maxLen=-1, float spaceExtra=0.0f, bool outline=false) |
float | StringEllipsis (const ucs4 *inText, ucs4 *outText, size_t outTextSize, float width, float spaceExtra=0.0f, bool outline=false) |
float | CharWidth (ucs4 ch, ucs4 prev) const |
virtual intrusive_ptr< const Font > | GetSubFont (ucs4 ch) const |
virtual bool | IsMultiFontAdapter () const |
![]() | |
signed | AddRef () const |
signed | Release () const |
signed | GetRefCount () const |
Protected Member Functions | |
virtual FontCharID | CreateFontChar (ucs4 ch) const |
virtual void | DeleteFontChar (FontCharID fc) |
virtual float | GetKerning (ucs4 prev, ucs4 ch) const |
Protected Attributes | |
int | _ascend |
FT_Face | _face |
unsigned char * | _pBuffer |
FontTexKind | _texKind |
![]() | |
char | _path [MaxPath] |
int | _size |
Friends | |
class | FTFontGroup |