#include <CCFont.h>
Public Member Functions | |
virtual FontAtlas * | createFontAtlas ()=0 |
var | createFontAtlas () |
local | createFontAtlas () |
virtual Size * | getAdvancesForTextUTF16 (unsigned short *text, int &outNumLetters) const =0 |
virtual const char * | getCurrentGlyphCollection () const |
local | getCurrentGlyphCollection () |
virtual int | getLetterPadding () const |
var | getLetterPadding () |
local | getLetterPadding () |
virtual unsigned char * | getGlyphBitmap (unsigned short theChar, int &outWidth, int &outHeight) const |
var | getGlyphBitmap ( var theChar, var outWidth, var outHeight) |
local | getGlyphBitmap ( local theChar, local outWidth, local outHeight) |
virtual GlyphDef * | getGlyphDefintionsForText (const char *text, int &outNumGlyphs, bool UTF16text=false) const |
var | getGlyphDefintionsForText ( var text, var outNumGlyphs, var false) |
local | getGlyphDefintionsForText ( local text, local outNumGlyphs, local false) |
virtual int | getFontMaxHeight () const |
var | getFontMaxHeight () |
local | getFontMaxHeight () |
virtual Rect | getRectForChar (unsigned short theChar) const |
var | getRectForChar ( var theChar) |
local | getRectForChar ( local theChar) |
virtual int | getUTF16TextLenght (unsigned short int *text) const |
virtual unsigned short int * | getUTF16Text (const char *text, int &outNumLetters) const |
var | getUTF16Text ( var text, var outNumLetters) |
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 Public Member Functions | |
static Font * | createWithTTF (const std::string &fntName, int fontSize, GlyphCollection glyphs, const char *customGlyphs) |
local | createWithTTF ( local fntName, local fontSize, local glyphs, local customGlyphs) |
static Font * | createWithFNT (const std::string &fntFilePath) |
local | createWithFNT ( local fntFilePath) |
Protected Member Functions | |
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 Attributes | |
GlyphCollection | _usedGlyphs |
local | _usedGlyphs |
char * | _customGlyphs |
var | _customGlyphs |
local | _customGlyphs |
![]() | |
unsigned int | _reference |
count of references More... | |
unsigned int | _autoReleaseCount |
count of autorelease More... | |
Static Protected Attributes | |
static const char * | _glyphASCII |
var | _glyphASCII |
local | _glyphASCII |
static const char * | _glyphNEHE |
var | _glyphNEHE |
local | _glyphNEHE |
Additional Inherited Members | |
![]() | |
unsigned int | _ID |
object id, ScriptSupport need public _ID More... | |
int | _luaID |
Lua reference id. More... | |
|
protected |
|
protected |
|
protected |
|
inlineprotectedvirtual |
|
pure virtual |
Implemented in FontFreeType, and FontFNT.
|
pure virtual |
Implemented in FontFreeType, and FontFNT.
|
pure virtual |
Implemented in FontFreeType, and FontFNT.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
pure virtual |
Implemented in FontFreeType, and FontFNT.
|
pure virtual |
Implemented in FontFreeType, and FontFNT.
|
pure virtual |
Implemented in FontFreeType, and FontFNT.
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Reimplemented in FontFreeType.
|
inlinevirtual |
Reimplemented in FontFreeType.
|
inlinevirtual |
Reimplemented in FontFreeType.
|
inlinevirtual |
Reimplemented in FontFreeType.
|
inlinevirtual |
Reimplemented in FontFreeType.
|
inlinevirtual |
Reimplemented in FontFreeType.
|
protected |
|
protected |
|
protected |
|
inlinevirtual |
Reimplemented in FontFreeType.
|
inlinevirtual |
Reimplemented in FontFreeType.
|
inlinevirtual |
Reimplemented in FontFreeType.
|
inlinevirtual |
Reimplemented in FontFreeType.
|
inlinevirtual |
Reimplemented in FontFreeType.
|
inlinevirtual |
Reimplemented in FontFreeType.
|
virtual |
Reimplemented in FontFNT.
|
virtual |
Reimplemented in FontFNT.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
protected |
|
protected |
|
virtual |
|
virtual |
|
virtual |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |