8 getopt.getopt (sys.argv[1:],
24 for design_size in [11,13,14,16,18,20,23,26]:
26 script = '''#!@FONTFORGE@
29 # Separate Feta versioning?
30 # Naming: * expose LilyPond20/LilyPond rather than %(name)s
31 # * using 20 as Weight works for gnome-font-select widget: gfs
32 SetFontNames("%(name)s%(design_size)d", "LilyPond", "LilyPond %(name)s %(design_size)d", "%(design_size)d", "GNU GPL", "@TOPLEVEL_VERSION@");
34 MergeFonts("feta%(design_size)d.pfa");
35 MergeFonts("parmesan%(design_size)d.pfa");
37 # load nummer/din after setting PUA.
41 # crashes fontforge, use PUA for now -- jcn
42 # SetUnicodeValue(i + 0xF0000, 0);
45 In the BMP, the range 0xe000 to 0xf8ff will never be assigned to any
46 characters by the standard and is reserved for private usage. For the
47 Linux community, this private area has been subdivided further into the
48 range 0xe000 to 0xefff which can be used individually by any end-user
49 and the Linux zone in the range 0xf000 to 0xf8ff where extensions are
50 coordinated among all Linux users. The registry of the characters
51 assigned to the Linux zone is currently maintained by H. Peter Anvin
52 <Peter.Anvin@linux.org>.
54 SetUnicodeValue(i + 0xE000, 0);
59 MergeFonts("feta-alphabet%(design_size)d.pfa");
60 MergeKern("feta-alphabet%(design_size)d.tfm");
62 LoadTableFromFile("LILC", "feta%(design_size)d.otf-table")
63 LoadTableFromFile("LILY", "feta%(design_size)d.otf-gtable")
65 Generate("%(name)s%(design_size)d.otf");
66 Generate("%(name)s%(design_size)d.cff");''' % vars()
68 path = os.path.join (outdir, name + '%d' % design_size + '.pe')
69 open (path, 'w').write (script)
71 path = os.path.join (outdir, name + '%d' % design_size + '.dep')
73 deps = r'''%(name)s%(design_size)d.otf: $(outdir)/feta%(design_size)d.pfa \
74 $(outdir)/parmesan%(design_size)d.pfa \
75 $(outdir)/feta-alphabet%(design_size)d.pfa feta%(design_size)d.otf-table \
76 $(outdir)/feta-alphabet%(design_size)d.pfa feta%(design_size)d.otf-gtable
78 open (path, 'w').write (deps)