MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / CFEGetGlyphFromUnicode

Function CFEGetGlyphFromUnicode

modules/commodetto/cfeNFNT.c:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138CFEGlyph CFEGetGlyphFromUnicode(CommodettoFontEngine tf, uint32_t unicode, uint8_t needPixels)
139{
140 uint16_t glyphID = unicodeToMacRoman(unicode);
141 if (kInvalidGlyphID == glyphID)
142 return NULL;
143
144 return CFEGetGlyphFromGlyphID(tf, glyphID, needPixels);
145}
146
147int16_t CFEGetKerningOffset(CommodettoFontEngine tf, uint32_t unicode1, uint32_t unicode2)
148{

Callers

nothing calls this directly

Calls 2

unicodeToMacRomanFunction · 0.85
CFEGetGlyphFromGlyphIDFunction · 0.70

Tested by

no test coverage detected