LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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 stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:38 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