Fix a display of some non-composing glyphs

e.g. ligatures, arabic
This commit is contained in:
ichizok
2018-07-04 14:04:07 +09:00
parent 6688ed2290
commit 17a8a7f3c0
+4 -2
View File
@@ -1271,8 +1271,10 @@ recurseDraw(const unichar *chars, CGGlyph *glyphs, CGPoint *positions,
{
if (CTFontGetGlyphsForCharacters(fontRef, chars, glyphs, length)) {
// All chars were mapped to glyphs, so draw all at once and return.
length = composeGlyphsForChars(chars, glyphs, positions, length,
fontRef, isComposing, useLigatures);
length = isComposing || useLigatures
? composeGlyphsForChars(chars, glyphs, positions, length,
fontRef, isComposing, useLigatures)
: gatherGlyphs(glyphs, length);
CTFontDrawGlyphs(fontRef, glyphs, positions, length, context);
return;
}