Merge pull request #713 from ichizok/fix/display-glyphs

Fix a display of some non-composing glyphs
This commit is contained in:
Kazuki Sakamoto
2018-07-23 20:03:51 -07:00
committed by GitHub
+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;
}