My Project
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
ParaEngine::FontFreeType Class Reference
Inheritance diagram for ParaEngine::FontFreeType:
ParaEngine::Font ParaEngine::CRefCountedOne ParaEngine::CRefCounted

Public Member Functions

bool isDistanceFieldEnabled () const
 
float getOutlineSize () const
 
void renderCharAt (unsigned char *dest, int posX, int posY, unsigned char *bitmap, long bitmapWidth, long bitmapHeight)
 
FT_Encoding getEncoding () const
 
int * getHorizontalKerningForTextUTF16 (const std::u16string &text, int &outNumLetters) const override
 
unsigned char * getGlyphBitmap (unsigned short theChar, long &outWidth, long &outHeight, CCRect &outRect, int &xAdvance)
 
int getFontAscender () const
 
const char * getFontFamily () const
 
virtual FontAtlascreateFontAtlas () override
 
virtual int getFontMaxHeight () const override
 
- Public Member Functions inherited from ParaEngine::CRefCounted
void addref () const
 add reference count of the object. More...
 
bool delref () const
 decrease reference count of the object. More...
 
int GetRefCount () const
 get the reference count
 
virtual int Release ()
 
CRefCountedAddToAutoReleasePool ()
 addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More...
 

Static Public Member Functions

static FontFreeTypecreate (const std::string &fontName, float fontSize, GlyphCollection glyphs, const char *customGlyphs, bool distanceFieldEnabled=false, int outline=0)
 
static void shutdownFreeType ()
 
static void shutdownFreeType_exit ()
 
static void releaseFont (const std::string &fontName)
 

Static Public Attributes

static const int DistanceMapSpread = 3
 

Additional Inherited Members

- Protected Attributes inherited from ParaEngine::CRefCounted
int m_refcount
 

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