MCPcopy Create free account
hub / github.com/MyGUI/mygui / ~FreetypeFontGuard

Method ~FreetypeFontGuard

MyGUIEngine/src/msdfgen/main.cpp:1047–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045 FontHandle *font;
1046 FreetypeFontGuard() : ft(), font() { }
1047 ~FreetypeFontGuard() {
1048 if (ft) {
1049 if (font)
1050 destroyFont(font);
1051 deinitializeFreetype(ft);
1052 }
1053 }
1054 } guard;
1055 if (!(guard.ft = initializeFreetype()))
1056 ABORT("Failed to initialize FreeType library.");

Callers

nothing calls this directly

Calls 2

destroyFontFunction · 0.85
deinitializeFreetypeFunction · 0.85

Tested by

no test coverage detected