@@ -1060,7 +1060,6 @@ - (void)batchDrawData:(NSData *)data
10601060
10611061 if (CTFontGetGlyphsForCharacters (fontRef, chars, glyphs, length)) {
10621062 // All chars were mapped to glyphs, so draw all at once and return.
1063- CGContextSetTextPosition (context, x, y);
10641063 if (emojiEnabled) {
10651064 length = gatherGlyphs (glyphs, length);
10661065 CTFontDrawGlyphs (fontRef, glyphs, positions, length, context);
@@ -1096,7 +1095,6 @@ - (void)batchDrawData:(NSData *)data
10961095 }
10971096
10981097 int count = g-glyphs;
1099- CGContextSetTextPosition (context, x0, y);
11001098 if (emojiEnabled) {
11011099 if (surrogatePair)
11021100 count = gatherGlyphs (glyphs, count);
@@ -1254,7 +1252,7 @@ - (void)drawString:(const UniChar *)chars length:(UniCharCount)length
12541252
12551253 CGContextSetTextPosition (context, x, y+fontDescent);
12561254 recurseDraw (chars, glyphs, positions, length, context, fontRef, fontCache,
1257- y+fontDescent, fontCache, (flags & DRAW_WIDE) && emojiEnabled);
1255+ fontCache, (flags & DRAW_WIDE) && emojiEnabled);
12581256
12591257 CFRelease (fontRef);
12601258 CGContextRestoreGState (context);
0 commit comments