Index: src/sfnt/SkOTTable_name.cpp |
diff --git a/src/sfnt/SkOTTable_name.cpp b/src/sfnt/SkOTTable_name.cpp |
index b536c0a115828d0e7f52ecc12088715c77f2d391..b1b8c256d7b14fd6792229e926d52193e9068689 100644 |
--- a/src/sfnt/SkOTTable_name.cpp |
+++ b/src/sfnt/SkOTTable_name.cpp |
@@ -68,7 +68,8 @@ static uint16_t UnicodeFromMacRoman[0x80] = { |
static void SkStringFromMacRoman(const uint8_t* macRoman, size_t length, SkString& utf8) { |
utf8.reset(); |
for (size_t i = 0; i < length; ++i) { |
- utf8.appendUnichar(macRoman[i] < 0x80 ? macRoman[i] : UnicodeFromMacRoman[macRoman[i]]); |
+ utf8.appendUnichar(macRoman[i] < 0x80 ? macRoman[i] |
+ : UnicodeFromMacRoman[macRoman[i] - 0x80]); |
} |
} |