XLE  v0.02.0
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
RenderOverlays::FTFont Class Reference
Inheritance diagram for RenderOverlays::FTFont:
Inheritance graph
[legend]

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
 
- Public Member Functions inherited from RenderOverlays::Font
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 FontGetSubFont (ucs4 ch) const
 
virtual bool IsMultiFontAdapter () const
 
- Public Member Functions inherited from Utility::RefCountedObject
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
 
- Protected Attributes inherited from RenderOverlays::Font
char _path [MaxPath]
 
int _size
 

Friends

class FTFontGroup
 

The documentation for this class was generated from the following files: