MCPcopy Create free account
hub / github.com/MyGUI/mygui / loadFont

Function loadFont

MyGUIEngine/src/msdfgen/ext/import-font.cpp:163–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163FontHandle *loadFont(FreetypeHandle *library, const char *filename) {
164 if (!library)
165 return NULL;
166 FontHandle *handle = new FontHandle;
167 FT_Error error = FT_New_Face(library->library, filename, 0, &handle->face);
168 if (error) {
169 delete handle;
170 return NULL;
171 }
172 handle->ownership = true;
173 return handle;
174}
175
176FontHandle *loadFontData(FreetypeHandle *library, const byte *data, int length) {
177 if (!library)

Callers 2

loadVarFontFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected