LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-12-2010, 07:34 AM   #1
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
How Do I Add Font Paths to XPDF


So, Adobe Reader ain't available for 64-bit so I'm stuck with XPDF (or Okular, which is better than XPDF) and most stuff won't print worth a hoot. I've been reading the manual pages and somewhere or other I'm missing some thing about adding font paths (or replacing the default font paths). I have the complete Adobe Type Library plus TTF's installed in /usr/local/share/fonts (and they work just fine with OpenOffice.org) but I can't seem to figure out how to get them or the Slackware-provided fonts available to XPDF.

Any hints?
 
Old 03-12-2010, 08:13 AM   #2
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
regarding okular, it doen't have specific option to install font paths. But it was able to show all types of fonts available in my system.
 
Old 03-12-2010, 08:58 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
For xpdf, try changing the font path in /etc/xpdfrc from /usr/share/ghostscript to /usr/share/libwmf
This enables commonly used Windows fonts.
Code:
bash-4.1$ diff /etc/xpdfrc.new /etc/xpdfrc                                                                                                         
32,45c32,45                                                                                                                                        
< displayFontT1 Times-Roman             /usr/share/ghostscript/fonts/n021003l.pfb                                                                  
< displayFontT1 Times-Italic            /usr/share/ghostscript/fonts/n021023l.pfb                                                                  
< displayFontT1 Times-Bold              /usr/share/ghostscript/fonts/n021004l.pfb                                                                  
< displayFontT1 Times-BoldItalic                /usr/share/ghostscript/fonts/n021024l.pfb                                                          
< displayFontT1 Helvetica                       /usr/share/ghostscript/fonts/n019003l.pfb                                                          
< displayFontT1 Helvetica-Oblique               /usr/share/ghostscript/fonts/n019023l.pfb                                                          
< displayFontT1 Helvetica-Bold          /usr/share/ghostscript/fonts/n019004l.pfb                                                                  
< displayFontT1 Helvetica-BoldOblique   /usr/share/ghostscript/fonts/n019024l.pfb                                                                  
< displayFontT1 Courier                 /usr/share/ghostscript/fonts/n022003l.pfb                                                                  
< displayFontT1 Courier-Oblique         /usr/share/ghostscript/fonts/n022023l.pfb                                                                  
< displayFontT1 Courier-Bold            /usr/share/ghostscript/fonts/n022004l.pfb                                                                  
< displayFontT1 Courier-BoldOblique     /usr/share/ghostscript/fonts/n022024l.pfb                                                                  
< displayFontT1 Symbol                  /usr/share/ghostscript/fonts/s050000l.pfb                                                                  
< displayFontT1 ZapfDingbats            /usr/share/ghostscript/fonts/d050000l.pfb                                                                  
---                                                                                                                                                
> displayFontT1 Times-Roman             /usr/share/libwmf/fonts/n021003l.pfb                                                                       
> displayFontT1 Times-Italic            /usr/share/libwmf/fonts/n021023l.pfb                                                                       
> displayFontT1 Times-Bold              /usr/share/libwmf/fonts/n021004l.pfb                                                                       
> displayFontT1 Times-BoldItalic                /usr/share/libwmf/fonts/n021024l.pfb                                                               
> displayFontT1 Helvetica                       /usr/share/libwmf/fonts/n019003l.pfb                                                               
> displayFontT1 Helvetica-Oblique               /usr/share/libwmf/fonts/n019023l.pfb                                                               
> displayFontT1 Helvetica-Bold          /usr/share/libwmf/fonts/n019004l.pfb                                                                       
> displayFontT1 Helvetica-BoldOblique   /usr/share/libwmf/fonts/n019024l.pfb                                                                       
> displayFontT1 Courier                 /usr/share/libwmf/fonts/n022003l.pfb                                                                       
> displayFontT1 Courier-Oblique         /usr/share/libwmf/fonts/n022023l.pfb                                                                       
> displayFontT1 Courier-Bold            /usr/share/libwmf/fonts/n022004l.pfb                                                                       
> displayFontT1 Courier-BoldOblique     /usr/share/libwmf/fonts/n022024l.pfb                                                                       
> displayFontT1 Symbol                  /usr/share/libwmf/fonts/s050000l.pfb                                                                       
> displayFontT1 ZapfDingbats            /usr/share/libwmf/fonts/d050000l.pfb
 
Old 03-13-2010, 04:20 PM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Thanks for the hint about libwmf -- makes XPDF almost (almost) look decent and it seems to print better than in did.

O where O where is Adobe Reader for 64-bit...
 
  


Reply



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
font paths in Xorg.0.log? purrcy Linux - Newbie 5 01-30-2009 01:43 PM
Booting into X, Bad font paths? punchthemonkey94 Linux - Software 8 01-08-2007 02:21 PM
how to change the default font used by xpdf? parv Linux - Newbie 1 07-29-2004 09:17 PM
xfs server ignoring font paths XPediTioN Mandriva 1 03-07-2004 05:11 PM
font paths aaronluke Linux - General 4 09-30-2002 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:53 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration