mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Fix a display of some non-composing glyphs
e.g. ligatures, arabic
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user