YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
平台无关的字体库。 更多...
#include "YSLib/Adaptor/Font.h"
#include "YSLib/Core/yapp.h"
#include "YSLib/Core/yexcept.h"
#include "YSLib/Core/yfilesys.h"
#include <Helper/GUIApplication.h>
#include "YCLib/Debug.h"
#include <algorithm>
函数 | |
::FT_Error | simpleFaceRequester (::FTC_FaceID face_id,::FT_Library library,::FT_Pointer,::FT_Face *aface) |
供 FreeType 使用的客户端字体查询函数。 | |
const Typeface & | FetchDefaultTypeface () ythrow(LoggedEvent) |
取默认字型引用。 | |
style (fs) | |
平台无关的字体库。
在文件 Font.cpp 中定义.
const Typeface& FetchDefaultTypeface | ( | ) |
取默认字型引用。
LoggedEvent | 记录异常事件。 |
参考 FetchDefaultFontCache() , 以及 YB_UNLIKELY.
::FT_Error simpleFaceRequester | ( | ::FTC_FaceID | face_id, |
::FT_Library | library, | ||
::FT_Pointer | , | ||
::FT_Face * | aface | ||
) |
供 FreeType 使用的客户端字体查询函数。
从由 face_id 提供的参数对应的字体文件中读取字体,写入 aface 。
参考 YB_LIKELY,YB_UNLIKELY , 以及 platform::yprintf().
参考自 YSLib::Drawing::FontCache::FontCache().
style | ( | fs | ) |
参考 YSLib::Drawing::FontFamily::GetTypefacePtr().
参考自 YSLib::Drawing::FetchName().