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

Function getGlyphIndex

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

Source from the content-addressed store, hash-verified

222}
223
224bool getGlyphIndex(GlyphIndex &glyphIndex, FontHandle *font, unicode_t unicode) {
225 glyphIndex = GlyphIndex(FT_Get_Char_Index(font->face, unicode));
226 return glyphIndex.getIndex() != 0;
227}
228
229bool loadGlyph(Shape &output, FontHandle *font, GlyphIndex glyphIndex, FontCoordinateScaling coordinateScaling, double *outAdvance) {
230 if (!font)

Callers 1

mainFunction · 0.85

Calls 2

GlyphIndexClass · 0.85
getIndexMethod · 0.80

Tested by

no test coverage detected