Red Hat Bugzilla – Bug 142299
/usr/share/a2ps/afm/make_fonts_map.sh is buggy
Last modified: 2007-11-30 17:10:56 EST
Description of problem:
A script /usr/share/a2ps/afm/make_fonts_map.sh has assorted
bugs. If a font name is of an "unlucky" length it prints in
an output file:
If instead of
echo "$col1$col2" >> fonts.map.new
it would use
echo "$col1 $col2" >> fonts.map.new
then the above would not happen. Even better, even if it
would do instead something like
printf "%-30s %s\n" "$name" "$shortname"
then all strange hacks with $many_spaces and sed would be totally
superflous and long names would just stick out to the right. Big
Also the case "A name has been cut" then would not appear. If
internally ap2s cannot use too long names then for names over the
limit one should do 'continue' instead of 'exit 1' and such fonts
would be simply skipped.
Still another problem is that, for example, a font with t1xtt.afm
metric file happens to a have a name 't1xtt' and extraction of fonts
names in make_fonts_map.sh shorten all names which start with 't1'
to just simple 't'. AFAIK 't1xtt' is perfectly legal font name
and one wonders what else.
Version-Release number of selected component (if applicable):
Created attachment 108147 [details]
minimal changes to make_fonts_map.diff
Many fonts have digits in names in various places.