MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Init

Method Init

Source/Engine/Render2D/FontAsset.cpp:80–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80bool 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
91FontFlags FontAsset::GetStyle() const
92{

Callers 3

GetBoldMethod · 0.45
GetItalicMethod · 0.45
GetMSDFMethod · 0.45

Calls 4

InitFunction · 0.50
GetMethod · 0.45
LengthMethod · 0.45
CopyMethod · 0.45

Tested by

no test coverage detected