$NetBSD: patch-aa,v 1.1.1.1 2002/05/20 12:38:59 wiz Exp $ --- mkfontalias.py.orig Mon May 13 23:10:34 2002 +++ mkfontalias.py @@ -16,7 +16,7 @@ # -- import sys, string, os -_font_sizes = range(6, 16) + [ 18, 24 ] +_font_sizes = range(6, 13) + [ 14, 16, 18, 20, 22, 24, 26, 28, 36, 48, 72 ] _infile = 'fonts.dir' _outfile = 'fonts.alias' @@ -67,13 +67,8 @@ sys.stderr.write ( 'Invalid font: %s\n' % (font) ) sys.exit(1) - name = entries[2] - - map = _font_map.get ( name, None ) - - if map: - # Create a bunch of aliases, for each size - for size in _font_sizes: + # Create a bunch of aliases, for each size + for size in _font_sizes: # Do the 'cheating' - fallback to size if not in the cheat map real_size = _cheat_map.get ( size, size ) @@ -81,7 +76,7 @@ str(real_size * 10) ] + entries[9:], '-' ) - alias = string.join ( entries[:2] + [map] + entries[3:7] + + alias = string.join ( entries[:3] + entries[3:7] + [ str(size), str(size * 10) ] + _res + entries[11:], '-' )