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

Function destroyFont

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

Source from the content-addressed store, hash-verified

187}
188
189void destroyFont(FontHandle *font) {
190 if (font->ownership)
191 FT_Done_Face(font->face);
192 delete font;
193}
194
195bool getFontMetrics(FontMetrics &metrics, FontHandle *font, FontCoordinateScaling coordinateScaling) {
196 double scale = getFontCoordinateScale(font->face, coordinateScaling);

Callers 2

initialiseFreeTypeMethod · 0.85
~FreetypeFontGuardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected