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: AntykwaPoltawskiego-BoldItalicantpbi 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 deal! 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): a2ps-4.13b-42
Created attachment 108147 [details] minimal changes to make_fonts_map.diff Many fonts have digits in names in various places.
Thanks!