Bug 142294 - a2ps default configuration is lacking
a2ps default configuration is lacking
Product: Fedora
Classification: Fedora
Component: a2ps (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Tim Waugh
Depends On:
  Show dependency treegraph
Reported: 2004-12-08 15:09 EST by Michal Jaegermann
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version: 4.13b-43
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-12-09 11:40:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Michal Jaegermann 2004-12-08 15:09:16 EST
Description of problem:

In a default /etc/ap2s.cfg for "AppendLibraryPath" one can see:


which is not really right in the context.  As a result
'a2ps --list-options' produces:
  library path        = 

and '/usr/share/a2ps/afm/make_fonts_map.sh' does not see many
useful fonts which most likely are on the system.

Here is a list of various directories found with .afm files
(that is what a2ps is looking for):


Even after dropping "yandy" from that list, and possibly few
others, this still leaves quite a number which look much more
useful than /usr/local/ghostscript/fonts.

Version-Release number of selected component (if applicable):
Comment 1 Michal Jaegermann 2004-12-09 10:48:51 EST
I am not sure about that but it seems that metrics only may be not
good enough and a2ps makes a tacit assumption that a font file will
be found in the same directory as its metric - which may or may not
be true.  Last night I rewrote myself make_fonts_map.sh script to
add a font to a map file only if both some_name.afm and
some_name.pf[abm] are found somewhere in a declared path (with an
exception of a2ps directories on a hope that a2ps knows what it is
doing; which may be too optimistic).  Are you interested?

Metrics only should be good enough in a case of "standard fonts".
These will be provided by Postscript printers and for other
ghostscript will make a substitution as needed.
Comment 2 Tim Waugh 2004-12-09 10:53:16 EST
I've really no idea about how that stuff works or is meant to work. :-(
Comment 3 Michal Jaegermann 2004-12-09 11:00:13 EST
Well, at least 


instead of


in a default configuration should give a better "standard" layout.
Comment 4 Tim Waugh 2004-12-09 11:21:06 EST
(changing to devel since FC3 has a2ps-4.13b-41 and has the correct paths listed.)
Comment 5 Tim Waugh 2004-12-09 11:26:51 EST
Problem was that the a2ps-4.13-conf.patch only touched configure but not
Comment 7 Michal Jaegermann 2004-12-09 18:59:24 EST
Yes, this was about "devel".  I listed a correct version but
failed to notice in bugzilla that not that branch was showing up.

OTOH my version of make_fonts_map.sh for some reasons finds on
FC3 installation, and without touching anything in /etc/a2ps.cfg,
thirty five more fonts than what shows up in a provided

Note You need to log in before you can comment on or make changes to this bug.