Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
This bug was initially created as a copy of Bug #1496308
I am copying this bug because:
New version of ghostscript in RHEL 7.7 has dependencies which leads to urw-fonts being obsoleted by urw-base35-fonts. This causes ImageMagick/convert to stop working due to hardcoded font paths in ImageMagick pointing at the wrong place.
ImageMagick in RHEL7 needs to be updated to a version with fixed font paths.
Description of problem:
urw-fonts provided more fonts than urw-base35-fonts provides. At least Helvetica (and its derivatives) are known to be missing.
This causes test failures in ImageMagick, which requires a Helvetica font.
Version-Release number of selected component (if applicable):
urw-base35-fonts-20170801-1.fc28.noarch
See: https://github.com/ImageMagick/ImageMagick/issues/782
I think it is wrong to "Provides: urw-fonts" when you don't provide a replacement.
Where can I grab a Helvetica font for ImageMagick now?
To clarify - with ImageMagick and ghostscript installed the following command errors out:
[root@lxserv940:~]$ convert -size 1000x300 xc:none -pointsize 32 -fill white -gravity center -annotate +0+0 'TEST ' TEXT.png
convert: unable to read font `/usr/share/ghostscript/fonts/n019003l.pfb' @ error/annotate.c/RenderFreetype/1124.
convert: unable to read font `/usr/share/ghostscript/fonts/n019003l.pfb' @ error/annotate.c/RenderFreetype/1124.
due to faulty hardcoded font paths in /etc/ImageMagick/type-ghostscript.xml
I'm seeing this issue too. I can't use convert correctly as it's looking for /usr/share/ghostscript/fonts/n019003l.pfb which doesn't exist any more.
ImageMagick-6.7.8.9-18.el7.x86_64
ghostscript-9.25-2.el7_7.2.x86_64
ghostscript-fonts-5.50-32.el7.noarch
urw-base35-fonts-common-20170801-10.el7.noarch
urw-base35-d050000l-fonts-20170801-10.el7.noarch
urw-base35-nimbus-roman-fonts-20170801-10.el7.noarch
urw-base35-standard-symbols-ps-fonts-20170801-10.el7.noarch
urw-base35-z003-fonts-20170801-10.el7.noarch
urw-base35-fonts-20170801-10.el7.noarch
urw-base35-p052-fonts-20170801-10.el7.noarch
urw-base35-bookman-fonts-20170801-10.el7.noarch
urw-base35-nimbus-mono-ps-fonts-20170801-10.el7.noarch
urw-base35-gothic-fonts-20170801-10.el7.noarch
urw-base35-nimbus-sans-fonts-20170801-10.el7.noarch
urw-base35-c059-fonts-20170801-10.el7.noarch
What other information do you need from me?
Comment 7Herbert van den Bergh
2019-10-22 23:00:19 UTC
Workaround:
mkdir $HOME/.magick
sed 's,/usr/share/fonts/default/Type1/,/usr/share/X11/fonts/urw-fonts/,g' /etc/ImageMagick/type-ghostscript.xml > $HOME/.magick/type.xml
(In reply to Herbert van den Bergh from comment #7)
> Workaround:
>
> mkdir $HOME/.magick
> sed 's,/usr/share/fonts/default/Type1/,/usr/share/X11/fonts/urw-fonts/,g'
> /etc/ImageMagick/type-ghostscript.xml > $HOME/.magick/type.xml
Thanks for this! Note that this workaround addresses:
> convert: unable to read font `/usr/share/ghostscript/fonts/n019003l.pfb' @ error/annotate.c/RenderFreetype/1124.
> convert: unable to read font `/usr/share/ghostscript/fonts/n019003l.pfb' @ error/annotate.c/RenderFreetype/1124.
only if you first install urw-base35-fonts-legacy-20170801-10.el7.noarch.rpm. This package is not installed automatically with ImageMagick-6.7.8.9-18.el7.x86_64
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2020:1180