From 37890560caa14fc54b237bb4928a4e843cc635b8 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 25 Sep 2015 22:51:39 -0700 Subject: Merge to XFA: Fix the issue that pdfium swallows 'fi' or 'ff' in some pdf files Pdfium swallows 'fi' or 'ff' in some tested files because it doesn't load the embedded font file correctly. The root cause is that there is incorrect keyword like 'ngendstream' in the stream of the embedded font file. Pdfium tries to find another correct keyword but uses wrong offset rather than accumulated offset. BUG=524043 TBR=jun_fang@foxitsoftware.com Review URL: https://codereview.chromium.org/1307353005 . (cherry picked from commit 9bd18183ba8210c91d71c3060146235750a4c71c) Review URL: https://codereview.chromium.org/1365253003 . --- testing/resources/pixel/bug_524043_2_expected.pdf.0.png | Bin 0 -> 2237 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 testing/resources/pixel/bug_524043_2_expected.pdf.0.png (limited to 'testing/resources/pixel/bug_524043_2_expected.pdf.0.png') diff --git a/testing/resources/pixel/bug_524043_2_expected.pdf.0.png b/testing/resources/pixel/bug_524043_2_expected.pdf.0.png new file mode 100644 index 0000000000..19de52a360 Binary files /dev/null and b/testing/resources/pixel/bug_524043_2_expected.pdf.0.png differ -- cgit v1.2.3