LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-28-2013, 03:27 PM   #1
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,007
Blog Entries: 5

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Adding fonts to Ghostscript for printing


Iíll admit Iím not an expert in (or any level of user really) of Ghostscript myself.

We have a binary that is apparently looking for a font: n019003l.pfb

I found that font file does actually exist on my RHEL5 systems in two different locations:
-rw-r--r-- 1 root root 101436 Jul 12 2006 /usr/share/fonts/default/Type1/n019003l.pfb
-rw-r--r-- 1 root root 36026 Apr 24 2009 /usr/share/libwmf/fonts/n019003l.pfb

If I run gs Ėh as mentioned by man page it shows ďsearch pathĒ includes the first directory above but not the second one.

I see information in the man page about using GS_FONTPATH variable to set the directories but have read various sites online (this means I HAVE done a Google search so please donít suggest one) that make it appear this isnít always reliable. Setting the GS_FONTPATH does not change the output of gs Ėh and from what Iíve read I think what is output by gs Ėh is what it knew when Ghostscript was compiled.

Since I donít actually run the binary myself Iím just interested in finding some way to validate the font from second path is available to ghostscript if I add it somehow.

Iíve looked at the Init files but quite frankly donít understand them.

So my questions:
1) How can I be sure that Ghostscript is using the second path if Iíve added it to GS_FONTPATH?
2) Is there a better way to make the second path available to Ghostscript than GS_FONTPATH? (e.g. I see mention of ĖI flag and also discussion of adding fonts to Init files but what Iíve found mentions commands I donít have.)
3) Is it possible the font in the first directory has what is in the second directory given that it is so much larger? (The dates shown are on the files as installed from rpmís so donít reflect when they were actually installed on the system.)

I am of course asking the person doing the work on the application to discuss with the vendor that made it so please donít suggest we push back to the vendor. Iím simply trying to get alternate information as I suspect the issue may be they need the font in the second path rather than the one in the first path so wanted to see if there is any direction on how to tell ghostscript to use that and verify it is in fact using it.

My reason for thinking he needs the second path is that I ran a cksum on it and found it is exactly the same as the font of the same name that I found in gs Ėh output on an HP-UX server that previously ran the application. (Please donít mention md5sum Ė I know about it but it isnít available on the older HP-UX system and Iím not trying to validate security of the application but rather simply its cksum/size.)
 
Old 03-29-2013, 08:34 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,770

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Sounds like you are editing the wrong file to get ghostscript to use fonts. Look in /usr/share/ghostscript (the exact location in the directory tree will vary among distributions). Look for Fontmap.GS. That's the file to edit. The entries must follow a particular format which should be evident when you see the file.

Making Fonts Available To Ghostscript : Font HowTo
 
  


Reply

Tags
ghostscript fonts


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
ghostscript-fonts package needs an update? Ilgar Slackware 0 09-28-2011 02:20 PM
Ghostscript fonts in Slackware current allend Slackware 3 09-07-2007 08:53 AM
Problem with ghostscript fonts (maybe?) aldob73 Slackware 3 09-02-2007 10:41 AM
Ghostscript - Can't find fonts ilikejam Linux - Software 2 03-10-2004 09:45 AM
Ghostscript printing moot Linux - Software 1 01-31-2003 05:05 AM


All times are GMT -5. The time now is 01:16 PM.

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