#include <CCFontFreeType.h>
|
virtual FontAtlas * | createFontAtlas () override |
virtual Size * | getAdvancesForTextUTF16 (unsigned short *text, int &outNumLetters) const override |
virtual GlyphDef * | getGlyphDefintionsForText (const char *text, int &outNumGlyphs, bool UTF16text=false) const override |
unsigned char * | getGlyphBitmap (unsigned short theChar, int &outWidth, int &outHeight) const override |
virtual int | getFontMaxHeight () const override |
virtual int | getLetterPadding () const override |
var | getLetterPadding () |
local | getLetterPadding () |
virtual const char * | getCurrentGlyphCollection () const |
local | getCurrentGlyphCollection () |
virtual Rect | getRectForChar (unsigned short theChar) const |
virtual int | getUTF16TextLenght (unsigned short int *text) const |
var | getUTF16TextLenght ( var text) |
local | getUTF16TextLenght ( local text) |
virtual unsigned short int * | getUTF16Text (const char *text, int &outNumLetters) const |
local | getUTF16Text ( local text, local outNumLetters) |
virtual unsigned short int * | trimUTF16Text (unsigned short int *text, int newBegin, int newEnd) const |
local | trimUTF16Text ( local text, local newBegin, local newEnd) |
| 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...
|
|
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 FontFreeType * | create (const std::string &fontName, int fontSize, GlyphCollection glyphs, const char *customGlyphs) |
var | create ( var fontName, var fontSize, var glyphs, var customGlyphs) |
local | create ( local fontName, local fontSize, local glyphs, local customGlyphs) |
static Font * | createWithTTF (const char *fntName, int fontSize, GlyphCollection glyphs, const char *customGlyphs) |
var | createWithTTF ( var fntName, var fontSize, var glyphs, var customGlyphs) |
local | createWithTTF ( local fntName, local fontSize, local glyphs, local customGlyphs) |
static Font * | createWithFNT (const char *fntFilePath) |
local | createWithFNT ( local fntFilePath) |
var create |
( |
var |
fontName, |
|
|
var |
fontSize, |
|
|
var |
glyphs, |
|
|
var |
customGlyphs |
|
) |
| |
|
static |
local create |
( |
local |
fontName, |
|
|
local |
fontSize, |
|
|
local |
glyphs, |
|
|
local |
customGlyphs |
|
) |
| |
|
static |
local createFontAtlas |
( |
) | |
|
|
overridevirtual |
bool createFontObject |
( |
const std::string & |
fontName, |
|
|
int |
fontSize |
|
) |
| |
|
protected |
var createFontObject |
( |
var |
fontName, |
|
|
var |
fontSize |
|
) |
| |
|
protected |
local createFontObject |
( |
local |
fontName, |
|
|
local |
fontSize |
|
) |
| |
|
protected |
virtual Size*
getAdvancesForTextUTF16 |
( |
unsigned short * |
text, |
|
|
int & |
outNumLetters |
|
) |
| const |
|
overridevirtual |
var getAdvancesForTextUTF16 |
( |
var |
text, |
|
|
var |
outNumLetters |
|
) |
| |
|
overridevirtual |
local getAdvancesForTextUTF16 |
( |
local |
text, |
|
|
local |
outNumLetters |
|
) |
| |
|
overridevirtual |
virtual int getFontMaxHeight |
( |
) | |
const |
|
overridevirtual |
local getFontMaxHeight |
( |
) | |
|
|
overridevirtual |
unsigned char* getGlyphBitmap |
( |
unsigned short |
theChar, |
|
|
int & |
outWidth, |
|
|
int & |
outHeight |
|
) |
| const |
|
overridevirtual |
var getGlyphBitmap |
( |
var |
theChar, |
|
|
var |
outWidth, |
|
|
var |
outHeight |
|
) |
| |
|
overridevirtual |
local getGlyphBitmap |
( |
local |
theChar, |
|
|
local |
outWidth, |
|
|
local |
outHeight |
|
) |
| |
|
overridevirtual |
virtual GlyphDef*
getGlyphDefintionsForText |
( |
const char * |
text, |
|
|
int & |
outNumGlyphs, |
|
|
bool |
UTF16text = false |
|
) |
| const |
|
overridevirtual |
var getGlyphDefintionsForText |
( |
var |
text, |
|
|
var |
outNumGlyphs, |
|
|
var |
UTF16text = false |
|
) |
| |
|
overridevirtual |
local getGlyphDefintionsForText |
( |
local |
text, |
|
|
local |
outNumGlyphs, |
|
|
local |
UTF16text = false |
|
) |
| |
|
overridevirtual |
virtual int getLetterPadding |
( |
) | |
const |
|
overridevirtual |
local getLetterPadding |
( |
) | |
|
|
overridevirtual |
The documentation for this class was generated from the following file: