cocos2d-x  3.0-rc0
 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
local createFontAtlas ()
virtual int * getHorizontalKerningForTextUTF16 (unsigned short *text, int &outNumLetters) const =0
var getHorizontalKerningForTextUTF16 ( var text, var outNumLetters)
local getHorizontalKerningForTextUTF16 ( local text, local outNumLetters)
virtual const char * getCurrentGlyphCollection () const
virtual unsigned char * getGlyphBitmap (unsigned short theChar, int &outWidth, int &outHeight) const
local getGlyphBitmap ( local theChar, local outWidth, local outHeight)
virtual int getFontMaxHeight () const
var getFontMaxHeight ()
local getFontMaxHeight ()
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 ()

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 Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 

Protected Attributes

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

Static Protected Attributes

static const char * _glyphASCII
var _glyphASCII
local _glyphASCII
static const char * _glyphNEHE
var _glyphNEHE
local _glyphNEHE

Constructor & Destructor Documentation

Font ( )
protected
var Font ( )
protected
local Font ( )
protected
virtual ~Font ( )
inlineprotectedvirtual

Member Function Documentation

virtual FontAtlas* createFontAtlas ( )
pure virtual

Implemented in FontFreeType, FontFNT, and FontCharMap.

var createFontAtlas ( )
pure virtual

Implemented in FontFreeType, FontFNT, and FontCharMap.

local createFontAtlas ( )
pure virtual

Implemented in FontFreeType, FontFNT, and FontCharMap.

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

Reimplemented in FontFreeType.

var getFontMaxHeight ( )
inlinevirtual

Reimplemented in FontFreeType.

local getFontMaxHeight ( )
inlinevirtual

Reimplemented in FontFreeType.

virtual unsigned char*
getGlyphBitmap
( unsigned short  theChar,
int &  outWidth,
int &  outHeight 
) const
inlinevirtual
var getGlyphBitmap ( var  theChar,
var  outWidth,
var  outHeight 
)
inlinevirtual
local getGlyphBitmap ( local  theChar,
local  outWidth,
local  outHeight 
)
inlinevirtual
const char* getGlyphCollection ( GlyphCollection  glyphs) const
protected
var getGlyphCollection ( var  glyphs)
protected
local getGlyphCollection ( local  glyphs)
protected
virtual int*
getHorizontalKerningForTextUTF16
( unsigned short *  text,
int &  outNumLetters 
) const
pure virtual

Implemented in FontFreeType, FontFNT, and FontCharMap.

var
getHorizontalKerningForTextUTF16
( var  text,
var  outNumLetters 
)
pure virtual

Implemented in FontFreeType, FontFNT, and FontCharMap.

local
getHorizontalKerningForTextUTF16
( local  text,
local  outNumLetters 
)
pure virtual

Implemented in FontFreeType, FontFNT, and FontCharMap.

virtual unsigned short*
getUTF16Text
( const char *  text,
int &  outNumLetters 
) const
virtual
var getUTF16Text ( var  text,
var  outNumLetters 
)
virtual
local getUTF16Text ( local  text,
local  outNumLetters 
)
virtual
virtual int getUTF16TextLenght ( unsigned short int *  text) const
virtual
var getUTF16TextLenght ( var  text)
virtual
local getUTF16TextLenght ( local  text)
virtual
void setCurrentGlyphCollection ( GlyphCollection  glyphs,
const char *  customGlyphs = 0 
)
protected
var setCurrentGlyphCollection ( var  glyphs,
var  customGlyphs = 0 
)
protected
local setCurrentGlyphCollection ( local  glyphs,
local  customGlyphs = 0 
)
protected
virtual unsigned short*
trimUTF16Text
( unsigned short int *  text,
int  newBegin,
int  newEnd 
) const
virtual
var trimUTF16Text ( var  text,
var  newBegin,
var  newEnd 
)
virtual
local trimUTF16Text ( local  text,
local  newBegin,
local  newEnd 
)
virtual

Member Data Documentation

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

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