YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
字型家族 (Typeface Family) 标识。 更多...
#include <Font.h>
Public 类型 | |
typedef map< const StyleName, Typeface * > | FaceMap |
字型组索引类型。 | |
Public 成员函数 | |
FontFamily (FontCache &, const FamilyName &) | |
使用字体缓存引用和名称构造字型家族。 | |
void | operator+= (Typeface &) |
向字型组和字型组索引添加字型对象。 | |
bool | operator-= (Typeface &) |
从字型组和字型组索引中移除指定字型对象。 | |
const FamilyName & | GetFamilyName () const ynothrow |
Typeface * | GetTypefacePtr (FontStyle) const |
取指定样式的字型指针。 | |
Typeface * | GetTypefacePtr (const StyleName &) const |
取指定样式名称的字型指针。 | |
Public 属性 | |
FontCache & | Cache |
Protected 属性 | |
FaceMap | mFaces |
字型组索引类型。 | |
Private 属性 | |
FamilyName | family_name |
额外继承的成员函数 | |
![]() | |
noncopyable (const noncopyable &)=delete | |
禁止复制构造。 | |
noncopyable & | operator= (const noncopyable &)=delete |
禁止赋值复制。 | |
noncopyable ()=default | |
protected 构造:默认实现。 | |
~noncopyable ()=default | |
protected 析构:默认实现。 | |
typedef map<const StyleName, Typeface*> YSLib::Drawing::FontFamily::FaceMap |
FontFamily::FontFamily | ( | FontCache & | cache, |
const FamilyName & | name | ||
) |
|
inline |
取指定样式的字型指针。
参考自 YSLib::Drawing::FontCache::GetTypefacePtr() , 以及 style().
void FontFamily::operator+= | ( | Typeface & | face | ) |
bool FontFamily::operator-= | ( | Typeface & | face | ) |
|
private |
|
protected |