cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Font Class Referenceabstract

#include <CCFont.h>

Inheritance diagram for Font:
Ref FontCharMap FontFNT FontFreeType

Public Member Functions

virtual FontAtlascreateFontAtlas ()=0
 
virtual int * getHorizontalKerningForTextUTF16 (const std::u16string &text, int &outNumLetters) const =0
 
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...
 

Protected Member Functions

 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...
 

Protected Attributes

GlyphCollection _usedGlyphs
 
char * _customGlyphs
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 

Static Protected Attributes

static const char * _glyphASCII
 
static const char * _glyphNEHE
 

Constructor & Destructor Documentation

Font ( )
protected
virtual ~Font ( )
inlineprotectedvirtual

NA NA

Member Function Documentation

virtual FontAtlas* createFontAtlas ( )
pure virtual

Implemented in FontFreeType, FontFNT, and FontCharMap.

virtual const char* getCurrentGlyphCollection ( ) const
virtual
virtual int getFontMaxHeight ( ) const
inlinevirtual

Reimplemented in FontFreeType.

const char* getGlyphCollection ( GlyphCollection  glyphs) const
protected
virtual int* getHorizontalKerningForTextUTF16 ( const std::u16string &  text,
int &  outNumLetters 
) const
pure virtual

Implemented in FontFreeType, FontFNT, and FontCharMap.

void setCurrentGlyphCollection ( GlyphCollection  glyphs,
const char *  customGlyphs = 0 
)
protected

Member Data Documentation

char* _customGlyphs
protected
const char* _glyphASCII
staticprotected
const char* _glyphNEHE
staticprotected
GlyphCollection _usedGlyphs
protected

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