cocos2d-x  3.0
 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 Ref

Public Member Functions

virtual int * getHorizontalKerningForTextUTF16 (unsigned short *text, int &outNumLetters) const override
var getHorizontalKerningForTextUTF16 ( var text, var outNumLetters)
local getHorizontalKerningForTextUTF16 ( local text, local outNumLetters)
virtual FontAtlascreateFontAtlas () override
var createFontAtlas ()
local createFontAtlas ()
- Public Member Functions inherited from Font
virtual const char * getCurrentGlyphCollection () const
virtual int getFontMaxHeight () 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
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Release the ownership immediately. More...
 
Refautorelease ()
 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 FontFNTcreate (const std::string &fntFilePath, const Point &imageOffset=Point::ZERO)
static void purgeCachedData ()
 Purges the cached data. More...
 

Protected Member Functions

 FontFNT (BMFontConfiguration *theContfig, const Point &imageOffset=Point::ZERO)
 FontFNT ( var theContfig, var ZERO)
 FontFNT ( local theContfig, local ZERO)
virtual ~FontFNT ()
- 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

Constructor & Destructor Documentation

FontFNT ( BMFontConfiguration *  theContfig,
const Point imageOffset = Point::ZERO 
)
protected
var FontFNT ( var  theContfig,
var  imageOffset = Point::ZERO 
)
protected
local FontFNT ( local  theContfig,
local  imageOffset = Point::ZERO 
)
protected
virtual ~FontFNT ( )
protectedvirtual

Member Function Documentation

static FontFNT* create ( const std::string &  fntFilePath,
const Point imageOffset = Point::ZERO 
)
static
var create ( var  fntFilePath,
var  imageOffset = Point::ZERO 
)
static
local create ( local  fntFilePath,
local  imageOffset = Point::ZERO 
)
static
virtual FontAtlas* createFontAtlas ( )
overridevirtual

Implements Font.

var createFontAtlas ( )
overridevirtual

Implements Font.

local createFontAtlas ( )
overridevirtual

Implements Font.

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

Implements Font.

var
getHorizontalKerningForTextUTF16
( var  text,
var  outNumLetters 
)
overridevirtual

Implements Font.

local
getHorizontalKerningForTextUTF16
( local  text,
local  outNumLetters 
)
overridevirtual

Implements Font.

static void purgeCachedData ( )
static

Purges the cached data.

Removes from memory the cached configurations and the atlas name dictionary.

var purgeCachedData ( )
static

Purges the cached data.

Removes from memory the cached configurations and the atlas name dictionary.

local purgeCachedData ( )
static

Purges the cached data.

Removes from memory the cached configurations and the atlas name dictionary.


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