| 222 | } |
| 223 | |
| 224 | CFEGlyph CFEGetGlyphFromUnicode(CommodettoFontEngine bmf, uint32_t unicode, uint8_t needPixels) |
| 225 | { |
| 226 | uint16_t glyphID = bmfUnicodeToGlyphID(bmf, unicode); |
| 227 | if (kInvalidGlyphID == glyphID) { |
| 228 | bmf->glyph.substitute = getASCIISubstitution(unicode); |
| 229 | if (bmf->glyph.substitute) |
| 230 | return &bmf->glyph; |
| 231 | return C_NULL; |
| 232 | } |
| 233 | |
| 234 | return CFEGetGlyphFromGlyphID(bmf, glyphID, needPixels); |
| 235 | } |
| 236 | |
| 237 | int16_t CFEGetKerningOffset(CommodettoFontEngine bmf, uint32_t unicode1, uint32_t unicode2) |
| 238 | { |
no test coverage detected