cocos2d-x  3.0-alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FontFNT Class Reference

#include <CCFontFNT.h>

Inheritance diagram for FontFNT:
Font Object

Public Member Functions

virtual SizegetAdvancesForTextUTF16 (unsigned short *text, int &outNumLetters) const override
local getAdvancesForTextUTF16 ( local text, local outNumLetters)
virtual Rect getRectForChar (unsigned short theChar) const override
virtual FontAtlascreateFontAtlas () override
local createFontAtlas ()
- Public Member Functions inherited from Font
virtual const char * getCurrentGlyphCollection () const
local getCurrentGlyphCollection ()
virtual int getLetterPadding () const
virtual unsigned char * getGlyphBitmap (unsigned short theChar, int &outWidth, int &outHeight) const
local getGlyphBitmap ( local theChar, local outWidth, local outHeight)
virtual GlyphDefgetGlyphDefintionsForText (const char *text, int &outNumGlyphs, bool UTF16text=false) const
local getGlyphDefintionsForText ( local text, local outNumGlyphs, local false)
virtual int getFontMaxHeight () 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)
- Public Member Functions inherited from Object
 Object ()
 Constructor. More...
 
virtual ~Object ()
void release ()
 Release the ownership immediately. More...
 
void retain ()
 Retains the ownership. More...
 
Objectautorelease ()
 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 FontFNTcreate (const char *fntFilePath)
- Static Public Member Functions inherited from Font
static FontcreateWithTTF (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 FontcreateWithFNT (const char *fntFilePath)
local createWithFNT ( local fntFilePath)

Protected Member Functions

 FontFNT (CCBMFontConfiguration *theContfig)
virtual ~FontFNT ()
- Protected Member Functions inherited from Font
 Font ()
virtual ~Font ()
void setCurrentGlyphCollection (GlyphCollection glyphs, const char *customGlyphs=0)
const char * getGlyphCollection (GlyphCollection glyphs) const
local getGlyphCollection ( local glyphs)

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 
- Protected Attributes inherited from Object
unsigned int _reference
 count of references More...
 
var _reference
 count of references More...
 
local _reference
 count of references More...
 
unsigned int _autoReleaseCount
 count of autorelease More...
 
var _autoReleaseCount
 count of autorelease More...
 
local _autoReleaseCount
 count of autorelease More...
 

Constructor & Destructor Documentation

FontFNT ( CCBMFontConfiguration theContfig)
inlineprotected
var FontFNT ( var  theContfig)
inlineprotected
local FontFNT ( local  theContfig)
inlineprotected
virtual ~FontFNT ( )
protectedvirtual

Member Function Documentation

static FontFNT* create ( const char *  fntFilePath)
static
var create ( var  fntFilePath)
static
local create ( local  fntFilePath)
static
virtual FontAtlas* createFontAtlas ( )
overridevirtual

Implements Font.

var createFontAtlas ( )
overridevirtual

Implements Font.

local createFontAtlas ( )
overridevirtual

Implements Font.

virtual Size*
getAdvancesForTextUTF16
( unsigned short *  text,
int &  outNumLetters 
) const
overridevirtual

Implements Font.

var getAdvancesForTextUTF16 ( var  text,
var  outNumLetters 
)
overridevirtual

Implements Font.

local getAdvancesForTextUTF16 ( local  text,
local  outNumLetters 
)
overridevirtual

Implements Font.

virtual Rect getRectForChar ( unsigned short  theChar) const
overridevirtual

Reimplemented from Font.

var getRectForChar ( var  theChar)
overridevirtual

Reimplemented from Font.

local getRectForChar ( local  theChar)
overridevirtual

Reimplemented from Font.


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