]> git.xonotic.org Git - xonotic/mediasource.git/blob - fonts/xolonium/tools/compile.ff
fa11f0945c6a74f3f9246fe3f6f2fea8ab7c4e5d
[xonotic/mediasource.git] / fonts / xolonium / tools / compile.ff
1 #!/usr/local/bin/fontforge
2
3 version  = $1;
4 source   = $2;
5 dingbats = $3;
6 features = $4;
7 target   = $5;
8
9
10 INCLUDE_LEGACY_KERN_TABLE = 0x800;
11 TTF_LANG_US = 0x0409;
12 TTF_NAME_UNIQUEID = 3;
13 DATE = Strftime("%y%m%d");
14
15
16 Open(source);
17 MergeFonts(dingbats);
18 MergeFeature(features);
19 SetFontNames("", "", "", "", "", version);
20 SetTTFName(TTF_LANG_US, TTF_NAME_UNIQUEID, $fullname + " " + $fontversion + " " + DATE);
21 Generate(target, "", INCLUDE_LEGACY_KERN_TABLE);
22 Quit(0);