gscan2pdf does not set a specific font for the unit test. If the
default font changes, the unit test fails. To fix, simply remove
/usr/share/fonts/type1/urw-base35/
from the URW search path on configure.ac.
Run autoconf to update configure.
Background:
The problem is the ImageMagick Development team added a new URW
font directory to search in configure.ac:
/usr/share/fonts/type1/urw-base35/. Unfortunately, type1 fonts
require an .afm metric file and
these metrics incorrectly set the descender and ascender to 0:
NimbusSans-Regular.afm:Descender 0
Ascender 0
We reviewed the Freetype code and in some places they sanitize
the ascender and descender if they are 0. We added code
to 6.9.11-62 to sanitize the values but unfortunately that then
changed the default font for gscan2pdf which changes the image
size for unit test t/1122_save_pdf_with_hocr.t.
By rights, the gscan2pdf developers should have specified a
specific font in case the default font changes-- but they didn't.
The proper fix for Debian is to patch configure.ac
to remove /usr/share/fonts/type1/urw-base35/ from the URW search path, run autoconf then build ImageMagick or have
the gscan2pdf development team set a specific font. We ran
gscan2pdf unit tests and they pass now. This same fix should work
for any release of ImageMagick 6 from 6.9.11-23+.
Cristy
Principle ImageMagick Architect