diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-25 17:49:08 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-25 17:49:08 +0000 |
commit | 72b8cb2320dddc6e006a2857746014e607e9e151 (patch) | |
tree | 08f4f5ba330c1e01ad395acf79d40642087771a8 /tests/FontHostTest.cpp | |
parent | cc17673032df07652a5b5cca5ee1994d6e04aa3d (diff) |
onCharsToGlyphs to handle non-bmp on Mac.
CTFontGetGlyphsForCharacters is a strange API for non-bmp code points.
R=caryclark@google.com
Review URL: https://codereview.chromium.org/43463005
git-svn-id: http://skia.googlecode.com/svn/trunk@11965 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/FontHostTest.cpp')
-rw-r--r-- | tests/FontHostTest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/FontHostTest.cpp b/tests/FontHostTest.cpp index 923b309aef..a7ecc5a9dc 100644 --- a/tests/FontHostTest.cpp +++ b/tests/FontHostTest.cpp @@ -72,7 +72,7 @@ static void test_countGlyphs(skiatest::Reporter* reporter, SkTypeface* face) { SkDebugf("--- typeface returned 0 glyphs [%X]\n", face->uniqueID()); } } -#if 0 + // The following three are all the same code points in various encodings. static uint8_t utf8Chars[] = { 0x61, 0xE4, 0xB8, 0xAD, 0xD0, 0xAF, 0xD7, 0x99, 0xD7, 0x95, 0xF0, 0x9D, 0x84, 0x9E, 0x61 }; static uint16_t utf16Chars[] = { 0x0061, 0x4E2D, 0x042F, 0x05D9, 0x05D5, 0xD834, 0xDD1E, 0x0061 }; @@ -115,7 +115,6 @@ static void test_charsToGlyphs(skiatest::Reporter* reporter, SkTypeface* face) { } } } -#endif static void test_fontstream(skiatest::Reporter* reporter, SkStream* stream, int ttcIndex) { @@ -230,7 +229,7 @@ static void test_tables(skiatest::Reporter* reporter) { test_tables(reporter, face); test_unitsPerEm(reporter, face); test_countGlyphs(reporter, face); - //test_charsToGlyphs(reporter, face); + test_charsToGlyphs(reporter, face); } } } |