Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-25-2008, 12:00 PM
|
#1
|
|
Member
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 194
Rep:
|
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.
|
|
|
|
04-25-2008, 07:23 PM
|
#2
|
|
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,743
|
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
|
|
|
|
04-26-2008, 12:13 AM
|
#3
|
|
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,743
|
I have looked at this again, and realised that /usr/share/fonts/default/ghostscript/ is actually a symlink to /usr/share/libwmf/fonts/.
|
|
|
|
04-26-2008, 07:22 AM
|
#4
|
|
Member
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 194
Original Poster
Rep:
|
Thanks so much - I will take a look at this. :^)
|
|
|
|
04-27-2008, 06:44 PM
|
#5
|
|
Member
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 194
Original Poster
Rep:
|
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.
|
|
|
|
04-27-2008, 08:29 PM
|
#6
|
|
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,743
|
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.
|
|
|
|
04-27-2008, 08:34 PM
|
#7
|
|
Senior Member
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,188
|
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.
|
|
|
|
04-27-2008, 08:49 PM
|
#8
|
|
Member
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 194
Original Poster
Rep:
|
Quote:
Originally Posted by allend
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.
|
|
|
|
08-02-2008, 10:00 AM
|
#9
|
|
Member
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 194
Original Poster
Rep:
|
Very belated reply ... it WAS an easy fix ... 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:45 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|