aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PDFGlyphsToUnicodeTest.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-08-31 12:52:35 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-31 12:52:35 -0700
commit3d01c62e19df9f369cdfaeff82ec8af2c0be75f1 (patch)
tree6f7d30931b95a3c97ae59ed9c849bed57af1aa41 /tests/PDFGlyphsToUnicodeTest.cpp
parent41a8f323f7ac63c753bc50d434ff61c350c176bd (diff)
SkPDF: Fix Type3 ToUnicode table.
This seems to fix text extraction on Adobe Reader - Registry/Ordering is now set to Skia/SkiaOrdering. - Type3 fonts now get a FontDescriptor (force symbolic font). - CMapName is now Skia-Identity-SkiaOrdering - CMap behaves correctly for single-byte fonts. Also: - SkTestTypeface returns tounicode map for testing. - Unit test updated All PDFs render the same BUG=skia:5606 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2292303004 Review-Url: https://codereview.chromium.org/2292303004
Diffstat (limited to 'tests/PDFGlyphsToUnicodeTest.cpp')
-rw-r--r--tests/PDFGlyphsToUnicodeTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/PDFGlyphsToUnicodeTest.cpp b/tests/PDFGlyphsToUnicodeTest.cpp
index d83ce664bc..3ba8870774 100644
--- a/tests/PDFGlyphsToUnicodeTest.cpp
+++ b/tests/PDFGlyphsToUnicodeTest.cpp
@@ -125,11 +125,11 @@ endbfchar\n";
char expectedResultSingleBytes[] =
"2 beginbfchar\n\
-<0001> <0000>\n\
-<0002> <0000>\n\
+<01> <0000>\n\
+<02> <0000>\n\
endbfchar\n\
1 beginbfrange\n\
-<0003> <0006> <1010>\n\
+<03> <06> <1010>\n\
endbfrange\n";
REPORTER_ASSERT(reporter, stream_equals(buffer, 0,