[MacPorts] #18647: font path is incorrect in Imagemagick
#18647: font path is incorrect in Imagemagick -----------------------------------+---------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: ImageMagick -----------------------------------+---------------------------------------- {{{ $ convert -font Times-Roman -pointsize 12 label:Test out.png convert: unable to read font `/opt/local/lib/ImageMagick-6.4.8/config//opt/local/share/ghostscript/fonts/n021003l.pfb' @ annotate.c/RenderFreetype/1315. convert: unable to read font `/opt/local/lib/ImageMagick-6.4.8/config//opt/local/share/ghostscript/fonts/n021003l.pfb' @ annotate.c/RenderFreetype/1315. convert: unable to read font `/opt/local/lib/ImageMagick-6.4.8/config//opt/local/share/ghostscript/fonts/n021003l.pfb' @ annotate.c/RenderFreetype/1315. }}} -- Ticket URL: <http://trac.macports.org/ticket/18647> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: font path is incorrect in Imagemagick -----------------------------------+---------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: ImageMagick -----------------------------------+---------------------------------------- Comment(by jeremyhu@…): btw, it's wrong in convert -list fonts: {{{ Font: Times-Roman family: Times style: Normal stretch: Normal weight: 400 glyphs: /opt/local/lib/ImageMagick-6.4.8/config//opt/local/share/ghostscript/fonts/n021003l.pfb }}} -- Ticket URL: <http://trac.macports.org/ticket/18647#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: font path is incorrect in Imagemagick -----------------------------------+---------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: ImageMagick -----------------------------------+---------------------------------------- Comment(by jeremyhu@…): setting up symlinks works for me, so it's not as urgent as I thought... but this should still be addressed -- Ticket URL: <http://trac.macports.org/ticket/18647#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: font path is incorrect in Imagemagick -----------------------------------+---------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: ImageMagick -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * status: new => assigned Comment: I can confirm the problem but I don't know what to do about it so I [http://studio.imagemagick.org/pipermail/magick- bugs/2009-February/003174.html asked the Magick-bugs mailing list]. -- Ticket URL: <http://trac.macports.org/ticket/18647#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: font path is incorrect in Imagemagick -----------------------------------+---------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: ImageMagick -----------------------------------+---------------------------------------- Comment(by djimi@…): Jeremyhu: What symlink is necessary for a workaround? Thanks in advance. -- Ticket URL: <http://trac.macports.org/ticket/18647#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: font path is incorrect in Imagemagick -----------------------------------+---------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: ImageMagick -----------------------------------+---------------------------------------- Comment(by jeremyhu@…): djimi: Well, it's looking for the font in: /opt/local/lib/ImageMagick-6.4.8/config//opt/local/share/ghostscript/fonts/n021003l.pfb So just do: sudo ln -s /opt /opt/local/lib/ImageMagick-6.4.8/config/opt Notice that the "6.4.8" is now "6.5.0" I think... -- Ticket URL: <http://trac.macports.org/ticket/18647#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: font path is incorrect in Imagemagick ----------------------------------+----------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Component: ports Version: 1.7.0 | Keywords: Port: ImageMagick | ----------------------------------+----------------------------------------- Comment(by ned@…): I have two machines with Macports installed. The fonts are right on one, but not on the other. They both have ghostscript and ImageMagick installed. The one where the installation is wrong happens to have had another installation of gs in /usr/local/bin/gs: $ which -a gs /usr/local/bin/gs /opt/local/bin/gs This machine is also missing a number of fonts in /opt/local/bin/gs/fonts that the other one has. But it has these fonts in /usr/local/share/ghostscript/fonts. I suspect that some configure script found the installation of ghostscript in /usr/local and got confused. The Macports install should prepend the /opt/local path, I think... -- Ticket URL: <http://trac.macports.org/ticket/18647#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: font path is incorrect in Imagemagick -----------------------------------+---------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Keywords: | Port: ImageMagick -----------------------------------+---------------------------------------- Comment(by takanori@…): Although recent gs doesn't contain old-styled Type 1 URW-Fonts any more, port:urw-fonts still provides these font files. So the easiest way to avoid this problem is make ImageMagick use port:urw- fonts. -- Ticket URL: <https://trac.macports.org/ticket/18647#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: font path is incorrect in Imagemagick -----------------------------------+---------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Keywords: | Port: ImageMagick -----------------------------------+---------------------------------------- Comment(by jeremyhu@…): That just masks the problem. -- Ticket URL: <https://trac.macports.org/ticket/18647#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: font path is incorrect in Imagemagick -----------------------------------+---------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Keywords: | Port: ImageMagick -----------------------------------+---------------------------------------- Comment(by takanori@…): Replying to [comment:11 jeremyhu@…]:
That just masks the problem.
This might be a workaround, but it can solve this long term problem actually. Why don't you write a patch if you have a complaint. -- Ticket URL: <https://trac.macports.org/ticket/18647#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: font path is incorrect in Imagemagick -----------------------------------+---------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Keywords: | Port: ImageMagick -----------------------------------+---------------------------------------- Comment(by jeremyhu@…): because I worked around it already and don't have time to invest in something like this. If you're going to fix it, fix it right. Otherwise, leave it broken. -- Ticket URL: <https://trac.macports.org/ticket/18647#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: font path is incorrect in Imagemagick -----------------------------------+---------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Keywords: | Port: ImageMagick -----------------------------------+---------------------------------------- Comment(by takanori@…): Replying to [comment:13 jeremyhu@…]:
If you're going to fix it, fix it right. Otherwise, leave it broken.
Nonsense. You don't have any decision rights. Only the port maintainers can decide whether the suggested patch is accepted or rejected. -- Ticket URL: <https://trac.macports.org/ticket/18647#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: ImageMagick: font path is incorrect -----------------------------------+---------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Keywords: | Port: ImageMagick -----------------------------------+---------------------------------------- Comment(by ryandesign@…): I'm happy to add a port:urw-fonts dependency to ImageMagick if that prevents people from encountering an error. I hadn't seen the error myself (except when I tried in response to this ticket), because I don't do font things with ImageMagick, and also I already have urw-fonts installed because it's a dependency of graphviz, which I always have installed. The issue in this ticket that the paths specified are nonsensical (e.g. /opt/local/lib/ImageMagick-6.4.8/config//opt/local/share/ghostscript/fonts/n021003l.pfb) seems to have been resolved upstream by now; I can no longer reproduce that. But even with urw-fonts installed, I still get the following error, so I don't think adding a urw-fonts dependency is a solution: {{{ convert: unable to read font `/opt/local/share/ghostscript/fontsx/n021003l.pfb' @ error/annotate.c/RenderFreetype/1059. convert: unable to read font `/opt/local/share/ghostscript/fontsx/n021003l.pfb' @ error/annotate.c/RenderFreetype/1059. convert: unable to read font `/opt/local/share/ghostscript/fontsx/n021003l.pfb' @ error/annotate.c/RenderFreetype/1059. }}} Looking back at [http://studio.imagemagick.org/pipermail/magick- bugs/2009-February/003174.html the thread I opened with the ImageMagick developers], it doesn't seem to have reached a conclusion. I may have forgotten to respond. It seemed to have ended with the developers saying ImageMagick should be using FontConfig if it's there, and ImageMagick in MacPorts does use FontConfig, so I still don't know why anything is trying to read these PFB fonts instead of the TrueType ones provided by Mac OS X. -- Ticket URL: <https://trac.macports.org/ticket/18647#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: ImageMagick: font path is incorrect -----------------------------------+---------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Keywords: | Port: ImageMagick -----------------------------------+---------------------------------------- Comment(by ryandesign@…): Ah, sorry, I see your patch also sets `--with-gs-font- dir=${prefix}/share/fonts/urw-fonts` which I haven't tried yet. -- Ticket URL: <https://trac.macports.org/ticket/18647#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18647: ImageMagick: font path is incorrect ------------------------------------+--------------------------------------- Reporter: jeremyhu@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: Port: ImageMagick | ------------------------------------+--------------------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: Yes, that does work, and the generated image now has reasonable-looking text too, instead of being squished to half the width like it was for me before. Thanks. Updated the port in r74188. If we find a better solution later we can always change it. -- Ticket URL: <https://trac.macports.org/ticket/18647#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts