#include <CCFontFreeType.h>
Public Member Functions | |
| bool | isDistanceFieldEnabled () const |
| int | getOutlineSize () const |
| void | renderCharAt (unsigned char *dest, int posX, int posY, unsigned char *bitmap, int bitmapWidth, int bitmapHeight) |
| var | renderCharAt ( var dest, var posX, var posY, var bitmap, var bitmapWidth, var bitmapHeight) |
| local | renderCharAt ( local dest, local posX, local posY, local bitmap, local bitmapWidth, local bitmapHeight) |
| virtual FontAtlas * | createFontAtlas () override |
| virtual int * | getHorizontalKerningForTextUTF16 (unsigned short *text, int &outNumLetters) const override |
| var | getHorizontalKerningForTextUTF16 ( var text, var outNumLetters) |
| local | getHorizontalKerningForTextUTF16 ( local text, local outNumLetters) |
| unsigned char * | getGlyphBitmap (unsigned short theChar, int &outWidth, int &outHeight, Rect &outRect, int &xAdvance) |
| local | getGlyphBitmap ( local theChar, local outWidth, local outHeight, local outRect, local xAdvance) |
| virtual int | getFontMaxHeight () const override |
| virtual int | getFontAscender () const |
| var | getFontAscender () |
| local | getFontAscender () |
Public Member Functions inherited from Font | |
| virtual const char * | getCurrentGlyphCollection () const |
| virtual unsigned char * | getGlyphBitmap (unsigned short theChar, int &outWidth, int &outHeight) const |
| local | getGlyphBitmap ( local theChar, local outWidth, local outHeight) |
| virtual int | getUTF16TextLenght (unsigned short int *text) const |
| var | getUTF16TextLenght ( var text) |
| local | getUTF16TextLenght ( local text) |
| virtual unsigned short * | getUTF16Text (const char *text, int &outNumLetters) const |
| var | getUTF16Text ( var text, var outNumLetters) |
| local | getUTF16Text ( local text, local outNumLetters) |
| virtual unsigned short * | trimUTF16Text (unsigned short int *text, int newBegin, int newEnd) const |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| void | release () |
| Release the ownership immediately. More... | |
| Ref * | autorelease () |
| Release the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
Static Public Member Functions | |
| static FontFreeType * | create (const std::string &fontName, int fontSize, GlyphCollection glyphs, const char *customGlyphs, bool distanceFieldEnabled=false, int outline=0) |
| static void | shutdownFreeType () |
Static Public Attributes | |
| static const int | DistanceMapSpread |
Protected Member Functions | |
| FontFreeType (bool distanceFieldEnabled=false, int outline=0) | |
| FontFreeType ( var false, var 0) | |
| FontFreeType ( local false, local 0) | |
| virtual | ~FontFreeType () |
| bool | createFontObject (const std::string &fontName, int fontSize) |
| var | createFontObject ( var fontName, var fontSize) |
| local | createFontObject ( local fontName, local fontSize) |
Protected Member Functions inherited from Font | |
| Font () | |
| Font () | |
| Font () | |
| virtual | ~Font () |
| void | setCurrentGlyphCollection (GlyphCollection glyphs, const char *customGlyphs=0) |
| var | setCurrentGlyphCollection ( var glyphs, var 0) |
| local | setCurrentGlyphCollection ( local glyphs, local 0) |
| const char * | getGlyphCollection (GlyphCollection glyphs) const |
| local | getGlyphCollection ( local glyphs) |
Protected Member Functions inherited from Ref | |
| Ref () | |
| Constructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Font | |
| GlyphCollection | _usedGlyphs |
| local | _usedGlyphs |
| char * | _customGlyphs |
| var | _customGlyphs |
| local | _customGlyphs |
Static Protected Attributes inherited from Font | |
| static const char * | _glyphASCII |
| var | _glyphASCII |
| local | _glyphASCII |
| static const char * | _glyphNEHE |
| var | _glyphNEHE |
| local | _glyphNEHE |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
static |
|
static |
|
static |
|
overridevirtual |
Implements Font.
|
overridevirtual |
Implements Font.
|
protected |
|
protected |
|
protected |
|
virtual |
|
virtual |
|
virtual |
|
overridevirtual |
Reimplemented from Font.
|
overridevirtual |
Reimplemented from Font.
|
overridevirtual |
Reimplemented from Font.
| unsigned char* getGlyphBitmap | ( | unsigned short | theChar, |
| int & | outWidth, | ||
| int & | outHeight, | ||
| Rect & | outRect, | ||
| int & | xAdvance | ||
| ) |
| var getGlyphBitmap | ( | var | theChar, |
| var | outWidth, | ||
| var | outHeight, | ||
| var | outRect, | ||
| var | xAdvance | ||
| ) |
| local getGlyphBitmap | ( | local | theChar, |
| local | outWidth, | ||
| local | outHeight, | ||
| local | outRect, | ||
| local | xAdvance | ||
| ) |
|
overridevirtual |
Implements Font.
|
overridevirtual |
Implements Font.
|
overridevirtual |
Implements Font.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void renderCharAt | ( | unsigned char * | dest, |
| int | posX, | ||
| int | posY, | ||
| unsigned char * | bitmap, | ||
| int | bitmapWidth, | ||
| int | bitmapHeight | ||
| ) |
| var renderCharAt | ( | var | dest, |
| var | posX, | ||
| var | posY, | ||
| var | bitmap, | ||
| var | bitmapWidth, | ||
| var | bitmapHeight | ||
| ) |
| local renderCharAt | ( | local | dest, |
| local | posX, | ||
| local | posY, | ||
| local | bitmap, | ||
| local | bitmapWidth, | ||
| local | bitmapHeight | ||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |