YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
字型标识。 更多...
#include <Font.h>
类 | |
struct | BitmapKey |
struct | BitmapKeyHash |
struct | SmallBitmapData |
Public 成员函数 | |
Typeface (FontCache &, const FontPath &, u32=0) | |
使用字体缓存引用在指定字体文件路径读取指定索引的字型并构造对象。 更多... | |
~Typeface () | |
since build 461 更多... | |
bool | operator== (const Typeface &) const |
比较:相等关系。 更多... | |
bool | operator< (const Typeface &) const |
比较:严格递增偏序关系。 更多... | |
DefGetterMem (const ynothrow, FamilyName, FamilyName, GetFontFamily()) DefGetter(const ynothrow | |
取字型家族。 更多... | |
const FontFamily ref first | DefGetter (const ynothrow, const StyleName &, StyleName, style_name) DefGetter(const ynothrow |
取字符映射索引号。 更多... | |
Public 属性 | |
const FontPath | Path |
const FontFamily | FontFamily |
const FontFamily ref first | CMapIndex |
Private 属性 | |
::FT_Long | face_index |
::FT_Int | cmap_index |
StyleName | style_name |
pair< std::reference_wrapper < FontFamily > , std::reference_wrapper <::FT_FaceRec_ > > | ref |
GMRUCache< BitmapKey, SmallBitmapData, BitmapKeyHash > | bitmap_cache |
unordered_map< ucs4_t,::FT_UInt > | glyph_index_cache |
unordered_map< FontSize, NativeFontSize > | size_cache |
友元 | |
class | Font |
ClearGlyphIndexCache | |
ClearSizeCache | |
PDefH (void, ClearBitmapCache,) ImplExpr(bitmap_cache.clear()) PDefH(void | |
ImplExpr (glyph_index_cache.clear()) PDefH(void | |
since build 420 更多... | |
SmallBitmapData & | LookupBitmap (const BitmapKey &) const |
::FT_UInt | LookupGlyphIndex (ucs4_t) const |
NativeFontSize & | LookupSize (FontSize) const |
since build 420 更多... | |
额外继承的成员函数 | |
![]() | |
noncopyable (const noncopyable &)=delete | |
禁止复制构造。 更多... | |
noncopyable & | operator= (const noncopyable &)=delete |
禁止赋值复制。 更多... | |
noncopyable ()=default | |
protected 构造:默认实现。 更多... | |
~noncopyable ()=default | |
protected 析构:默认实现。 更多... | |
![]() | |
nonmovable (const nonmovable &)=delete | |
禁止复制构造。 更多... | |
nonmovable & | operator= (const nonmovable &)=delete |
禁止赋值复制。 更多... | |
nonmovable ()=default | |
protected 构造:默认实现。 更多... | |
~nonmovable ()=default | |
protected 析构:默认实现。 更多... | |
使用字体缓存引用在指定字体文件路径读取指定索引的字型并构造对象。
cmap_index
在 face 接受的范围内。 YSLib::Drawing::Typeface::~Typeface | ( | ) |
since build 461
参考 bitmap_cache, YSLib::Drawing::face, glyph_index_cache, ref, size_cache, YAssert , 以及 YAssertNonnull.
const FontFamily ref first YSLib::Drawing::Typeface::DefGetter | ( | const ynothrow | , |
const StyleName & | , | ||
StyleName | , | ||
style_name | |||
) | const |
取字符映射索引号。
YSLib::Drawing::Typeface::DefGetterMem | ( | const ynothrow | , |
FamilyName | , | ||
FamilyName | , | ||
GetFontFamily() | |||
) | const |
取字型家族。
YSLib::Drawing::Typeface::ImplExpr | ( | glyph_index_cache. | clear() | ) |
since build 420
|
private |
参考 YSLib::Drawing::NativeFontSize::Activate(), bitmap_cache, YSLib::CacheLookup(), YSLib::Drawing::Typeface::BitmapKey::Flags, YSLib::Drawing::Typeface::BitmapKey::GlyphIndex, YSLib::Drawing::Italic, LookupSize(), ref, YSLib::Drawing::Typeface::BitmapKey::Size , 以及 YSLib::Drawing::Typeface::BitmapKey::Style.
|
private |
|
private |
since build 420
参考 platform::Descriptions::Alert, ref, size_cache , 以及 YB_UNLIKELY.
参考自 LookupBitmap().
bool YSLib::Drawing::Typeface::operator< | ( | const Typeface & | rhs | ) | const |
bool YSLib::Drawing::Typeface::operator== | ( | const Typeface & | rhs | ) | const |
YSLib::Drawing::Typeface::PDefH | ( | void | , |
ClearBitmapCache | |||
) |
|
mutableprivate |
|
private |
参考自 LookupGlyphIndex().
const FontFamily ref first YSLib::Drawing::Typeface::CMapIndex |
|
private |
参考自 operator<() , 以及 operator==().
const FontFamily YSLib::Drawing::Typeface::FontFamily |
|
mutableprivate |
const FontPath YSLib::Drawing::Typeface::Path |
参考自 operator<() , 以及 operator==().
|
private |
参考自 LookupBitmap(), LookupGlyphIndex(), LookupSize() , 以及 ~Typeface().
|
mutableprivate |