Bug 142294 - a2ps default configuration is lacking
Summary: a2ps default configuration is lacking
Alias: None
Product: Fedora
Classification: Fedora
Component: a2ps   
(Show other bugs)
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2004-12-08 20:09 UTC by Michal Jaegermann
Modified: 2007-11-30 22:10 UTC (History)
0 users

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

Attachments (Terms of Use)

Description Michal Jaegermann 2004-12-08 20:09:16 UTC
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 15:48:51 UTC
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 15:53:16 UTC
I've really no idea about how that stuff works or is meant to work. :-(

Comment 3 Michal Jaegermann 2004-12-09 16:00:13 UTC
Well, at least 


instead of


in a default configuration should give a better "standard" layout.

Comment 4 Tim Waugh 2004-12-09 16:21:06 UTC
(changing to devel since FC3 has a2ps-4.13b-41 and has the correct paths listed.)

Comment 5 Tim Waugh 2004-12-09 16:26:51 UTC
Problem was that the a2ps-4.13-conf.patch only touched configure but not

Comment 7 Michal Jaegermann 2004-12-09 23:59:24 UTC
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.