cocos2d-x  3.3
 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 (const std::u16string &text, int &outNumLetters) const override
 
virtual FontAtlascreateFontAtlas () override
 
- Public Member Functions inherited from Font
virtual const char * getCurrentGlyphCollection () const
 
virtual int getFontMaxHeight () const
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 NA NA More...
 

Static Public Member Functions

static FontFNTcreate (const std::string &fntFilePath, const Vec2 &imageOffset=Vec2::ZERO)
 
static void purgeCachedData ()
 Purges the cached data. More...
 

Protected Member Functions

 FontFNT (BMFontConfiguration *theContfig, const Vec2 &imageOffset=Vec2::ZERO)
 
virtual ~FontFNT ()
 NA NA More...
 
- Protected Member Functions inherited from Font
 Font ()
 
virtual ~Font ()
 NA NA More...
 
void setCurrentGlyphCollection (GlyphCollection glyphs, const char *customGlyphs=0)
 
const char * getGlyphCollection (GlyphCollection glyphs) const
 
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from Font
GlyphCollection _usedGlyphs
 
char * _customGlyphs
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
- Static Protected Attributes inherited from Font
static const char * _glyphASCII
 
static const char * _glyphNEHE
 

Constructor & Destructor Documentation

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

NA NA

Member Function Documentation

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

Implements Font.

virtual int* getHorizontalKerningForTextUTF16 ( const std::u16string &  text,
int &  outNumLetters 
) const
overridevirtual

Implements Font.

static void 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: