| 78 | } |
| 79 | |
| 80 | bool FontAsset::Init() |
| 81 | { |
| 82 | const FT_Error error = FT_New_Memory_Face(FontManager::GetLibrary(), _fontFile.Get(), static_cast<FT_Long>(_fontFile.Length()), 0, &_face); |
| 83 | if (error) |
| 84 | { |
| 85 | _face = nullptr; |
| 86 | LOG_FT_ERROR(error); |
| 87 | } |
| 88 | return error; |
| 89 | } |
| 90 | |
| 91 | FontFlags FontAsset::GetStyle() const |
| 92 | { |