YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::Drawing::FontFamily类 参考final

字型家族 (Typeface Family) 标识。 更多...

#include <Font.h>

类 YSLib::Drawing::FontFamily 继承关系图:
YSLib::Drawing::FontFamily 的协作图:

Public 类型

using FaceMap = map< const StyleName, Typeface * >
 字型组索引类型。 更多...
 

Public 成员函数

 FontFamily (FontCache &, const FamilyName &)
 使用字体缓存引用和名称构造字型家族。 更多...
 
void operator+= (Typeface &)
 向字型组和字型组索引添加字型对象。 更多...
 
bool operator-= (Typeface &)
 从字型组和字型组索引中移除指定字型对象。 更多...
 
 DefGetter (const ynothrow, const FamilyName &, FamilyName, family_name) Typeface *GetTypefacePtr(FontStyle) const
 取指定样式的字型指针。 更多...
 
TypefaceGetTypefacePtr (const StyleName &) const
 取指定样式名称的字型指针。 更多...
 
TypefaceGetTypefaceRef (FontStyle) const
 
TypefaceGetTypefaceRef (const StyleName &) const
 

Public 属性

FontCacheCache
 

Protected 属性

FaceMap mFaces
 字型组索引类型。 更多...
 

Private 属性

FamilyName family_name
 

额外继承的成员函数

- Private 成员函数 继承自 ystdex::noncopyable
 noncopyable (const noncopyable &)=delete
 禁止复制构造。 更多...
 
noncopyableoperator= (const noncopyable &)=delete
 禁止赋值复制。 更多...
 
 noncopyable ()=default
 protected 构造:默认实现。 更多...
 
 ~noncopyable ()=default
 protected 析构:默认实现。 更多...
 

详细描述

字型家族 (Typeface Family) 标识。

自从
build 145

在文件 Font.h170 行定义.

成员类型定义说明

字型组索引类型。

在文件 Font.h173 行定义.

构造及析构函数说明

YSLib::Drawing::FontFamily::FontFamily ( FontCache cache,
const FamilyName name 
)

使用字体缓存引用和名称构造字型家族。

在文件 Font.cpp117 行定义.

成员函数说明

YSLib::Drawing::FontFamily::DefGetter ( const ynothrow  ,
const FamilyName ,
FamilyName  ,
family_name   
) const

取指定样式的字型指针。

注解
若非 Regular 样式失败则尝试取 Regular 样式的字型指针。
Typeface * YSLib::Drawing::FontFamily::GetTypefacePtr ( const StyleName style_name) const

取指定样式名称的字型指针。

在文件 Font.cpp134 行定义.

参考 YSLib::Drawing::Regular.

参考自 YSLib::Drawing::FontCache::GetTypefacePtr() , 以及 GetTypefaceRef().

这是这个函数的调用关系图:

Typeface & YSLib::Drawing::FontFamily::GetTypefaceRef ( FontStyle  fs) const
自从
build 419

在文件 Font.cpp149 行定义.

参考 platform::Descriptions::Critical, GetTypefacePtr() , 以及 YB_UNLIKELY.

函数调用图:

Typeface & YSLib::Drawing::FontFamily::GetTypefaceRef ( const StyleName style_name) const
自从
build 419

在文件 Font.cpp158 行定义.

参考 platform::Descriptions::Critical, GetTypefacePtr() , 以及 YB_UNLIKELY.

函数调用图:

void YSLib::Drawing::FontFamily::operator+= ( Typeface face)

向字型组和字型组索引添加字型对象。

自从
build 277

在文件 Font.cpp122 行定义.

参考 YSLib::Drawing::face , 以及 mFaces.

bool YSLib::Drawing::FontFamily::operator-= ( Typeface face)

从字型组和字型组索引中移除指定字型对象。

自从
build 277

在文件 Font.cpp128 行定义.

参考 mFaces.

类成员变量说明

FontCache& YSLib::Drawing::FontFamily::Cache

在文件 Font.h175 行定义.

FamilyName YSLib::Drawing::FontFamily::family_name
private

在文件 Font.h178 行定义.

FaceMap YSLib::Drawing::FontFamily::mFaces
protected

字型组索引类型。

在文件 Font.h181 行定义.

参考自 operator+=() , 以及 operator-=().


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