MCPcopy Create free account
hub / github.com/aseprite/laf / LoadFont

Method LoadFont

text/freetype_font.cpp:139–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139base::Ref<FreeTypeFont> FreeTypeFont::LoadFont(ft::Lib& lib, const char* filename, const int height)
140{
141 auto font = base::make_ref<FreeTypeFont>(lib, filename, height);
142 if (!font->isValid())
143 font.reset(); // delete font
144 return font;
145}
146
147} // namespace text

Callers

nothing calls this directly

Calls 2

isValidMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected