cocos2d-x 3.0
- 首页 - 相关页面 - 模块 - 命名空间 - - 文件 -
Public 成员函数 - 图1 Public 成员函数 - 图2)
- 类列表 - 类索引 - 类继承关系 - 类成员

全部)) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义)))

Public 成员函数 | 静态 Public 成员函数 | Protected 成员函数 | 所有成员列表

FontFNT类 参考

#include

类 FontFNT 继承关系图:

Public 成员函数 - 图3 Font Ref

## Public 成员函数
virtual int getHorizontalKerningForTextUTF16 (const std::u16string &text, int &outNumLetters) const override
virtual FontAtlas createFontAtlas () override
- Public 成员函数 继承自 Font
virtual const char getCurrentGlyphCollection () const
virtual int getFontMaxHeight () const
- Public 成员函数 继承自 Ref
void retain ()
保留所有权. 更多…
void release ()
立即释放所有权. 更多…
Ref autorelease ()
自动释放所有权在不久的将来. 更多…
unsigned int getReferenceCount () const
返回Ref对象当前的引用计数. 更多…
virtual ~Ref ()
NA NA 更多…
## 静态 Public 成员函数
static FontFNT * create (const std::string &fntFilePath, const Vec2 &imageOffset=Vec2::ZERO)
static void purgeCachedData ()
清理缓存的数据 将缓存的字体配置数据和字体文件名称清理出内存 更多…
## Protected 成员函数
FontFNT (BMFontConfiguration theContfig, const Vec2 &imageOffset=Vec2::ZERO)
virtual ~FontFNT ()
NA NA 更多…
- Protected 成员函数 继承自 Font
Font ()
virtual ~Font ()
NA NA 更多…
void setCurrentGlyphCollection (GlyphCollection glyphs, const char customGlyphs=0)
const char * getGlyphCollection (GlyphCollection glyphs) const
- Protected 成员函数 继承自 Ref
Ref ()
构造函数 更多…
## 额外继承的成员函数
- Protected 属性 继承自 Font
GlyphCollection _usedGlyphs
char _customGlyphs
- Protected 属性 继承自 Ref
unsigned int _referenceCount
引用计数 更多…
- 静态 Protected 属性 继承自 Font
static const char _glyphASCII
static const char * _glyphNEHE

构造及析构函数说明

FontFNT ( BMFontConfiguration * theContfig,
const Vec2 & imageOffset = Vec2::ZERO
)

protected

virtual ~FontFNT ( )

protectedvirtual

NA NA

成员函数说明

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

static

virtual FontAtlas* createFontAtlas ( )

overridevirtual

实现了 Font.

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

overridevirtual

实现了 Font.

static void purgeCachedData ( )

static

清理缓存的数据 将缓存的字体配置数据和字体文件名称清理出内存


该类的文档由以下文件生成:

  • /Users/zeroyang/Documents/github/cocos2d-x/cocos/2d/CCFontFNT.h
  • cocos2d
  • FontFNT
  • 生成于 2014年 五月 29日 星期四 09:41:46 , 为 cocos2d-x使用 doxygen 1.8.6