Skip to content

Commit 6800549

Browse files
authored
Merge pull request #713 from ichizok/fix/display-glyphs
Fix a display of some non-composing glyphs
2 parents 89d1d93 + 17a8a7f commit 6800549

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/MacVim/MMCoreTextView.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,8 +1271,10 @@ - (void)batchDrawData:(NSData *)data
12711271
{
12721272
if (CTFontGetGlyphsForCharacters(fontRef, chars, glyphs, length)) {
12731273
// All chars were mapped to glyphs, so draw all at once and return.
1274-
length = composeGlyphsForChars(chars, glyphs, positions, length,
1275-
fontRef, isComposing, useLigatures);
1274+
length = isComposing || useLigatures
1275+
? composeGlyphsForChars(chars, glyphs, positions, length,
1276+
fontRef, isComposing, useLigatures)
1277+
: gatherGlyphs(glyphs, length);
12761278
CTFontDrawGlyphs(fontRef, glyphs, positions, length, context);
12771279
return;
12781280
}

0 commit comments

Comments
 (0)