#include <CCFontFreeType.h>
Public Member Functions | |
void | setDistanceFieldEnabled (bool distanceFieldEnabled) |
var | setDistanceFieldEnabled ( var distanceFieldEnabled) |
local | setDistanceFieldEnabled ( local distanceFieldEnabled) |
bool | isDistanceFieldEnabled () const |
bool | renderCharAt (unsigned short int charToRender, int posX, int posY, unsigned char *destMemory, int destSize) |
var | renderCharAt ( var charToRender, var posX, var posY, var destMemory, var destSize) |
local | renderCharAt ( local charToRender, local posX, local posY, local destMemory, local destSize) |
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) const override |
local | getGlyphBitmap ( local theChar, local outWidth, local outHeight) |
virtual int | getFontMaxHeight () const override |
bool | getBBOXFotChar (unsigned short theChar, Rect &outRect, int &xAdvance) const |
var | getBBOXFotChar ( var theChar, var outRect, var xAdvance) |
local | getBBOXFotChar ( local theChar, local outRect, local xAdvance) |
![]() | |
virtual const char * | getCurrentGlyphCollection () const |
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 |
![]() | |
Object () | |
Constructor. More... | |
virtual | ~Object () |
void | release () |
Release the ownership immediately. More... | |
void | retain () |
Retains the ownership. More... | |
Object * | autorelease () |
Release the ownership sometime soon automatically. More... | |
bool | isSingleReference () const |
Returns a boolean value that indicates whether there is only one reference to the object. More... | |
unsigned int | retainCount () const |
Returns the object's current reference count. More... | |
unsigned int | getReferenceCount () const |
virtual bool | isEqual (const Object *object) |
Returns a boolean value that indicates whether this object and a given object are equal. More... | |
virtual void | acceptVisitor (DataVisitor &visitor) |
virtual void | update (float dt) |
Static Public Member Functions | |
static FontFreeType * | create (const std::string &fontName, int fontSize, GlyphCollection glyphs, const char *customGlyphs) |
static void | shutdownFreeType () |
Static Public Attributes | |
static const int | DistanceMapSpread |
var | DistanceMapSpread |
local | DistanceMapSpread |
Protected Member Functions | |
FontFreeType () | |
virtual | ~FontFreeType () |
bool | createFontObject (const std::string &fontName, int fontSize) |
var | createFontObject ( var fontName, var fontSize) |
local | createFontObject ( local fontName, local fontSize) |
![]() | |
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) |
Additional Inherited Members | |
![]() | |
unsigned int | _ID |
object id, ScriptSupport need public _ID More... | |
int | _luaID |
Lua reference id. More... | |
![]() | |
GlyphCollection | _usedGlyphs |
local | _usedGlyphs |
char * | _customGlyphs |
var | _customGlyphs |
local | _customGlyphs |
![]() | |
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 |
bool getBBOXFotChar | ( | unsigned short | theChar, |
Rect & | outRect, | ||
int & | xAdvance | ||
) | const |
var getBBOXFotChar | ( | var | theChar, |
var | outRect, | ||
var | xAdvance | ||
) |
local getBBOXFotChar | ( | local | theChar, |
local | outRect, | ||
local | xAdvance | ||
) |
|
overridevirtual |
Reimplemented from Font.
|
overridevirtual |
Reimplemented from Font.
|
overridevirtual |
Reimplemented from Font.
|
overridevirtual |
Reimplemented from Font.
|
overridevirtual |
Reimplemented from Font.
|
overridevirtual |
Reimplemented from Font.
|
overridevirtual |
Implements Font.
|
overridevirtual |
Implements Font.
|
overridevirtual |
Implements Font.
|
inline |
|
inline |
|
inline |
bool renderCharAt | ( | unsigned short int | charToRender, |
int | posX, | ||
int | posY, | ||
unsigned char * | destMemory, | ||
int | destSize | ||
) |
var renderCharAt | ( | var | charToRender, |
var | posX, | ||
var | posY, | ||
var | destMemory, | ||
var | destSize | ||
) |
local renderCharAt | ( | local | charToRender, |
local | posX, | ||
local | posY, | ||
local | destMemory, | ||
local | destSize | ||
) |
void setDistanceFieldEnabled | ( | bool | distanceFieldEnabled) |
var setDistanceFieldEnabled | ( | var | distanceFieldEnabled) |
local setDistanceFieldEnabled | ( | local | distanceFieldEnabled) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |