Index: src/ports/SkFontHost_mac.cpp |
diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp |
index 5386ac3f3e1dfcb3f17171b624f86915c42a3ea8..aae7464e2516e6d8608ab0ea1ceb18aee98371f5 100755 |
--- a/src/ports/SkFontHost_mac.cpp |
+++ b/src/ports/SkFontHost_mac.cpp |
@@ -1981,10 +1981,10 @@ int SkTypeface_Mac::onCharsToGlyphs(const void* chars, Encoding encoding, |
if (srcCount > glyphCount) { |
int extra = 0; |
for (int i = 0; i < glyphCount; ++i) { |
+ compactedGlyphs[i] = macGlyphs[i + extra]; |
if (SkUTF16_IsHighSurrogate(src[i + extra])) { |
++extra; |
} |
- compactedGlyphs[i] = macGlyphs[i + extra]; |
} |
} |