diff options
author | Ryan Harrison <rharrison@chromium.org> | 2018-05-31 19:26:52 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-31 19:26:52 +0000 |
commit | 1118a66bfe024e137324075ac4d9433b9425e373 (patch) | |
tree | 54b52b97df28789dd22c1619ef96d67d8ac0d77f /samples | |
parent | 9bff799490de4ac9da53d708f547d106f28d5c72 (diff) | |
download | pdfium-1118a66bfe024e137324075ac4d9433b9425e373.tar.xz |
Make XFA pixel tests more stablechromium/3447
When generating PDFs using the fixup script and a .in, specify them to
to use Ahem.ttf as the text font. Ahem is a font designed to reduce
flakiness in pixel tests due to font rendering differences between
platforms. Specifically the glyphs in the font are standard size black
boxes, so though the specific text content cannot be easily compared,
things like layout and high level changes to the content can still
be tested. Testing things like specific text changes should be done
via an embedder test, where the strings in the elements can be
extracted and inspected.
The font itself is is CID type 2 font, which is relatively complex to
correctly embed in a PDF due to subsetting and other features. Instead
of embedding it in the generated PDFs, which was originally attempted,
it is being supplied to pdfium_test via the --font-dir flag. This flag
overrides where the binary looks for system fonts. This works
correctly on Mac and Linux, but not on Windows, which is why that
platform remains suppressed.
BUG=pdfium:1008,pdfium:1020
Change-Id: I00811536de98f736fc599d96b397194ccf8db0cd
Reviewed-on: https://pdfium-review.googlesource.com/27790
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions