]> de.git.xonotic.org Git - xonotic/mediasource.git/blob - fonts/xolonium/scripts/generate-otf.ff
Update Xolonium font sources to version 2.0
[xonotic/mediasource.git] / fonts / xolonium / scripts / generate-otf.ff
1 #!/usr/local/bin/fontforge
2 # Usage: [fontforge -script] generate-otf.ff SOURCEFILE [FEATUREFILE ...] OTFFILE
3
4         Open($1)
5
6 # Merge feature files
7
8         shift
9         while ($argc > 2)
10                 MergeFeature($1)
11                 shift
12         endloop
13
14 # Set unique ID in TTF name table
15
16         TTF_LANG_US = 0x0409
17         TTF_NAME_UNIQUEID = 3
18         DATE = Strftime("%Y%m%d")
19
20         SetTTFName(TTF_LANG_US, TTF_NAME_UNIQUEID, $fullname + " " + $fontversion + " " + DATE)
21
22 # Generate font
23
24         FLAG_OLDKERN = 0x800 # Include old fashioned kern tables for legacy applications
25
26         Generate($1, "", FLAG_OLDKERN)
27         Quit(0)