LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-25-2008, 12:00 PM   #1
chexmix
Member
 
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 207
Blog Entries: 15

Rep: Reputation: 17
xpdf and missing fonts


Good day, all -

For a number of reasons I have been doing more work with PDF files of late and have noticed I have a problem with xpdf on my Slackware install ... essentially, it doesn't seem to be rendering fonts correctly, or maybe I should say finding fonts correctly. In order to start troubleshooting, I tried firing it up from the cl on a particularly troublesome document and got this:

chexmix@catbutt:~$ xpdf RecyclingGuide.pdf
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-BoldItalic'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'
Error: Couldn't create a font for 'Times-Roman'

... the first time I've seen it complain about THAT font, but whatever.

I checked in the /etc directory and noticed there was an .xpdfrc.new file I hadn't accounted for, so I merged that in, but am still having this problem.

Anyone else seen anything like it? I checked for prior posts on this issue in the Slack forum and there were hits, but they were years old.

Thanks.
 
Old 04-25-2008, 07:23 PM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,409

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
I suggest that you edit your /etc/xpdfrc file and change the display fonts section to point to the location of your ghostscript fonts. I have:
Code:
displayFontT1 Times-Roman		/usr/share/fonts/default/ghostscript/n021003l.pfb
displayFontT1 Times-Italic		/usr/share/fonts/default/ghostscript/n021023l.pfb
displayFontT1 Times-Bold		/usr/share/fonts/default/ghostscript/n021004l.pfb
displayFontT1 Times-BoldItalic		/usr/share/fonts/default/ghostscript/n021024l.pfb
displayFontT1 Helvetica			/usr/share/fonts/default/ghostscript/n019003l.pfb
displayFontT1 Helvetica-Oblique		/usr/share/fonts/default/ghostscript/n019023l.pfb
displayFontT1 Helvetica-Bold		/usr/share/fonts/default/ghostscript/n019004l.pfb
displayFontT1 Helvetica-BoldOblique	/usr/share/fonts/default/ghostscript/n019024l.pfb
displayFontT1 Courier			/usr/share/fonts/default/ghostscript/n022003l.pfb
displayFontT1 Courier-Oblique		/usr/share/fonts/default/ghostscript/n022023l.pfb
displayFontT1 Courier-Bold		/usr/share/fonts/default/ghostscript/n022004l.pfb
displayFontT1 Courier-BoldOblique	/usr/share/fonts/default/ghostscript/n022024l.pfb
displayFontT1 Symbol			/usr/share/fonts/default/ghostscript/s050000l.pfb
displayFontT1 ZapfDingbats		/usr/share/fonts/default/ghostscript/d050000l.pfb
 
Old 04-26-2008, 12:13 AM   #3
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,409

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
I have looked at this again, and realised that /usr/share/fonts/default/ghostscript/ is actually a symlink to /usr/share/libwmf/fonts/.
 
Old 04-26-2008, 07:22 AM   #4
chexmix
Member
 
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 207
Blog Entries: 15

Original Poster
Rep: Reputation: 17
Thanks so much - I will take a look at this. :^)
 
Old 04-27-2008, 06:44 PM   #5
chexmix
Member
 
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 207
Blog Entries: 15

Original Poster
Rep: Reputation: 17
hmmm ...

Interesting, I not only don't have

/usr/share/fonts/default/ghostscript/

I don't have

/usr/share/fonts/default/

either.

I guess I will go ahead and create that symlink, but it makes me wonder what I missed and how, and what else might be MIA.

Thanks.
 
Old 04-27-2008, 08:29 PM   #6
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,409

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
I suggest that you run 'locate n021003l.pfb' and see if the font file is on your disk.
These fonts are in the 'libwmf' package and the 'ghostscript-fonts' package. They may be installed in a different directory.
 
Old 04-27-2008, 08:34 PM   #7
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,252

Rep: Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630
chexmix, I don't have that either. It doesn't exist in a default Slackware 12.0 setup. It shouldn't affect anything as far as I know. Those fonts are in /usr/share/fonts/Type1 for me (or /usr/share/libwmf/fonts). Try those instead.
 
Old 04-27-2008, 08:49 PM   #8
chexmix
Member
 
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 207
Blog Entries: 15

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by allend View Post
I suggest that you run 'locate n021003l.pfb' and see if the font file is on your disk.
These fonts are in the 'libwmf' package and the 'ghostscript-fonts' package. They may be installed in a different directory.
I should have been more explicit / complete with my post: I found the fonts where you said the symlink pointed:

/usr/share/libwmf/fonts/

but I didn't have the symlink 'r the directory in which to create the symlink. I guess it will be a pretty easy fix. :^)

Thanks again.
 
Old 08-02-2008, 10:00 AM   #9
chexmix
Member
 
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 207
Blog Entries: 15

Original Poster
Rep: Reputation: 17
Very belated reply ... it WAS an easy fix ...
 
  


Reply

Tags
display, fonts, xpdf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with XPDF - Way it renders fonts weird JockVSJock Slackware 3 10-26-2005 06:03 PM
xpdf (non-embedded fonts) guldo Linux - Software 1 01-06-2005 11:28 PM
Microsoft fonts missing TazG Linux - General 16 09-22-2004 07:27 AM
gnome 2.4 missing fonts and such lukebeales Linux - Software 1 10-04-2003 02:26 PM
missing fonts adam_boz Linux - Newbie 1 08-09-2003 10:08 PM


All times are GMT -5. The time now is 01:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration