Bug 661664 - Wrong default font paths in GraphicsMagick
Summary: Wrong default font paths in GraphicsMagick
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: GraphicsMagick
Version: 14
Hardware: Unspecified
OS: Linux
low
medium
Target Milestone: ---
Assignee: Andreas Thienemann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-09 10:44 UTC by Jan ONDREJ
Modified: 2011-05-05 05:09 UTC (History)
1 user (show)

Fixed In Version: GraphicsMagick-1.3.12-4.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-05 05:09:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jan ONDREJ 2010-12-09 10:44:05 UTC
Description of problem:
By using fonts in svg files, gm is trying to open fonts in ghostscript directory, where they doesn't exist. Even if I install ghostscript fonts, they have no proper files. Proper files are located in Type1 fonts directory. Please update gmk config files.

Version-Release number of selected component (if applicable):
GraphicsMagick-1.3.12-2.fc14.i686

How reproducible:
always

Steps to Reproduce:
1. cat << EOF >> /tmp/file.svg
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" version="1.1" style="fill:transparent" viewBox="0 0 800 600">
  <text x="192" y="61" font-size="13" fill="#000000" style="font-family: Helvetica">Text test</text>
</svg>
2. gm convert /tmp/file.svg /tmp/file.png
  
Actual results:
gm convert: Unable to read font (/usr/share/fonts/default/ghostscript/n019003l.pfb) [File does not exist].

Expected results:
no error

Additional info:
Try to look at /usr/lib/GraphicsMagick-1.3.12/config/type-ghostscript.mgk, where these paths are stored.
Locate can find this file in /usr/share/fonts/default/Type1/n019003l.pfb, symlink works, so you have to just replace /usr/share/fonts/default/ghostscript to /usr/share/fonts/default/Type1 in type-ghostscript.mgk. I am not sure, if this is requested for all fonts here or also in other files.

Comment 1 Fedora Update System 2011-04-27 19:19:32 UTC
GraphicsMagick-1.3.12-4.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/GraphicsMagick-1.3.12-4.fc15

Comment 2 Fedora Update System 2011-04-28 19:02:56 UTC
Package GraphicsMagick-1.3.12-4.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing GraphicsMagick-1.3.12-4.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/GraphicsMagick-1.3.12-4.fc15
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2011-05-05 05:09:08 UTC
GraphicsMagick-1.3.12-4.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.