[MacPorts] #26057: xpdf cant find paper defn nor fonts
#26057: xpdf cant find paper defn nor fonts -------------------------------------+-------------------------------------- Reporter: davidh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: -------------------------------------+-------------------------------------- I did a remove of macports, followed by a install of 1.9.1-10.5. The following port commands were issued: sudo port selfupdate sudo port install quartz-wm sudo port install xpdf I then opened an x11 xterm window and ran the following: bash-3.2$ which xpdf /opt/local/bin/xpdf bash-3.2$ xpdf Error: No paper information available - using defaults Error: No display font for 'Courier' Error: No display font for 'Courier-Bold' Error: No display font for 'Courier-BoldOblique' Error: No display font for 'Courier-Oblique' Error: No display font for 'Helvetica' Error: No display font for 'Helvetica-Bold' Error: No display font for 'Helvetica-BoldOblique' Error: No display font for 'Helvetica-Oblique' Error: No display font for 'Symbol' Error: No display font for 'Times-Bold' Error: No display font for 'Times-BoldItalic' Error: No display font for 'Times-Italic' Error: No display font for 'Times-Roman' Error: No display font for 'ZapfDingbats' Is this an x11 configuration error? What have I forgotten? -- Ticket URL: <http://trac.macports.org/ticket/26057> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26057: xpdf cant find paper defn nor fonts -------------------------------------+-------------------------------------- Reporter: davidh@… | Owner: ricci@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: xpdf -------------------------------------+-------------------------------------- Changes (by snc@…): * owner: macports-tickets@… => ricci@… * port: => xpdf Old description:
I did a remove of macports, followed by a install of 1.9.1-10.5.
The following port commands were issued: sudo port selfupdate sudo port install quartz-wm sudo port install xpdf
I then opened an x11 xterm window and ran the following: bash-3.2$ which xpdf /opt/local/bin/xpdf bash-3.2$ xpdf Error: No paper information available - using defaults Error: No display font for 'Courier' Error: No display font for 'Courier-Bold' Error: No display font for 'Courier-BoldOblique' Error: No display font for 'Courier-Oblique' Error: No display font for 'Helvetica' Error: No display font for 'Helvetica-Bold' Error: No display font for 'Helvetica-BoldOblique' Error: No display font for 'Helvetica-Oblique' Error: No display font for 'Symbol' Error: No display font for 'Times-Bold' Error: No display font for 'Times-BoldItalic' Error: No display font for 'Times-Italic' Error: No display font for 'Times-Roman' Error: No display font for 'ZapfDingbats'
Is this an x11 configuration error? What have I forgotten?
New description: I did a remove of macports, followed by a install of 1.9.1-10.5. The following port commands were issued: {{{ sudo port selfupdate sudo port install quartz-wm sudo port install xpdf }}} I then opened an x11 xterm window and ran the following: {{{ bash-3.2$ which xpdf /opt/local/bin/xpdf bash-3.2$ xpdf Error: No paper information available - using defaults Error: No display font for 'Courier' Error: No display font for 'Courier-Bold' Error: No display font for 'Courier-BoldOblique' Error: No display font for 'Courier-Oblique' Error: No display font for 'Helvetica' Error: No display font for 'Helvetica-Bold' Error: No display font for 'Helvetica-BoldOblique' Error: No display font for 'Helvetica-Oblique' Error: No display font for 'Symbol' Error: No display font for 'Times-Bold' Error: No display font for 'Times-BoldItalic' Error: No display font for 'Times-Italic' Error: No display font for 'Times-Roman' Error: No display font for 'ZapfDingbats' }}} Is this an x11 configuration error? What have I forgotten? -- Comment: Please remember to preview your formatting prior to submitting a ticket; also please be sure to include the maintainer. -- Ticket URL: <http://trac.macports.org/ticket/26057#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26057: xpdf cant find paper defn nor fonts -------------------------------------+-------------------------------------- Reporter: davidh@… | Owner: ricci@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: xpdf -------------------------------------+-------------------------------------- Comment(by macosx12345@…): You can get rid of the `Error: No display font for [...]` errors by editing the /opt/local/etc/xpdfrc file and uncommenting the lines that start with `displayFontT1` . It seems that some other distributions of xpdf (eg. Debian's) do this automatically. -- Ticket URL: <http://trac.macports.org/ticket/26057#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26057: xpdf cant find paper defn nor fonts -------------------------------------+-------------------------------------- Reporter: davidh@… | Owner: ricci@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: xpdf -------------------------------------+-------------------------------------- Comment(by macosx12345@…): Replying to [comment:2 macosx12345@…]:
You can get rid of the `Error: No display font for [...]` errors by editing the /opt/local/etc/xpdfrc file and uncommenting the lines that start with `displayFontT1` .
Well, this is not very useful here (sorry), as the default xpdfrc file provided with xpdf does not match the fonts that come with today's MacPorts' version of ghostscript (maybe it used in the past). Instead, I suggest using the fonts that the port `urw-fonts` provides. I attached a patch proposal to xpdf's portfile that removes the run-depency to ghostscript, adds a run-dependency to urw-fonts and lets xpdf use the fronts from `urw-fonts` by default. I successfully tested it on an Intel iMac running Mac OS X 10.6.4 with MacPorts 1.9.1. When opening a PDF document that uses, say, the Times- Roman font, I no longer see empty pages but the actual characters. (This does not solve the paper definition issue.) -- Ticket URL: <http://trac.macports.org/ticket/26057#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26057: xpdf cant find paper defn nor fonts -------------------------------------+-------------------------------------- Reporter: davidh@… | Owner: ricci@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: xpdf -------------------------------------+-------------------------------------- Comment(by gale@…): Replying to [comment:4 macosx12345@…]:
...I suggest using the fonts that the port `urw-fonts` provides. I attached a patch proposal to xpdf's portfile that removes the run-depency to ghostscript, adds a run-dependency to urw-fonts and lets xpdf use the fronts from `urw-fonts` by default.
I vote for this patch. That is a much lighter dependency, and it's all we need.
(This does not solve the paper definition issue.)
The current version of `xpdf` requires the `PAPERSIZE` environment variable to be set at runtime. Setting it stops that error message. The value of the environment variable is used as the default, but it is overridden if either the `-paper` option is specified on the command line or if `psPaperSize` is specified in `xpdfrc`. -- Ticket URL: <https://trac.macports.org/ticket/26057#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26057: xpdf cant find paper defn nor fonts -------------------------------------+-------------------------------------- Reporter: davidh@… | Owner: ricci@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: xpdf -------------------------------------+-------------------------------------- Changes (by ricci@…): * status: new => assigned Comment: Replying to [comment:6 gale@…]:
Replying to [comment:4 macosx12345@…]:
...I suggest using the fonts that the port `urw-fonts` provides. I attached a patch proposal to xpdf's portfile that removes the run-depency to ghostscript, adds a run-dependency to urw-fonts and lets xpdf use the fronts from `urw-fonts` by default.
I vote for this patch. That is a much lighter dependency, and it's all we need.
I like the idea. The part I don't like is that urw-fonts is no longer present at the source URL in the urw-fonts Portfile. I'd rather have it depend on a set of fonts that's still being distributed, if anyone knows of such a thing (and if we already have a port for it), please append to this ticket. -- Ticket URL: <https://trac.macports.org/ticket/26057#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26057: xpdf cant find paper defn nor fonts -------------------------------------+-------------------------------------- Reporter: davidh@… | Owner: ricci@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: xpdf -------------------------------------+-------------------------------------- Comment(by macosx12345@…): Unfortunately there are available sets of fonts that would suit the need but it seems they have no port yet: - the Ghostscript fonts, available e.g. at http://sourceforge.net/projects /gs-fonts/files/gs-fonts/8.11 (base 35%2C GPL)/ghostscript-fonts- std-8.11.tar.gz, - the (non cyrillized) URW fonts, available e.g. at http://ftp.gimp.org/pub/gimp/fonts/urw-fonts.tar.gz . Why could we not suggest the creation of a port for the Ghostscript fonts? By the way, probably should we file a bug report and/or cc the maintainer of the urw-fonts ports. -- Ticket URL: <https://trac.macports.org/ticket/26057#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26057: xpdf cant find paper defn nor fonts -----------------------+-------------------------------- Reporter: davidh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: xpdf | -----------------------+-------------------------------- Changes (by ricci@…): * owner: ricci@… => macports-tickets@… * status: assigned => new Comment: No longer maintainer -- Ticket URL: <https://trac.macports.org/ticket/26057#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#26057: xpdf cant find paper defn nor fonts -----------------------+-------------------------------- Reporter: davidh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: xpdf | -----------------------+-------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => macports-tickets@… -- Ticket URL: <https://trac.macports.org/ticket/26057#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#26057: xpdf cant find paper defn nor fonts -----------------------+-------------------------------- Reporter: davidh@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: xpdf | -----------------------+-------------------------------- Comment (by pedzsan@…): Sorry for the newbie type question but... is there a work around for this? I installed xpdf fine but I have no fonts. I do have fonts like /usr/local/share/ghostscript/9.07/Resource/Font/plss9.pfb but the xpdfrc file has names like n021003l.pfb which I don't have. So I don't know which font that I have would match up with Courier, etc. -- Ticket URL: <https://trac.macports.org/ticket/26057#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts