diff options
author | Rasmus Andersson <rasmus@notion.se> | 2018-09-01 22:59:27 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2018-09-01 22:59:27 +0300 |
commit | 8c1a4c181ef12000179dfec541f1af87e9b03122 (patch) | |
tree | a9e5508e963230a34281d55b31f6dceb50726a60 /misc/ufocompile | |
parent | 50ca3807f77eec9c01dcb5107da9348026e83c6c (diff) | |
download | inter-8c1a4c181ef12000179dfec541f1af87e9b03122.tar.xz |
adds --cufo flag to ufocompile for compiling UFO files instead of OTF and TTF files
Diffstat (limited to 'misc/ufocompile')
-rwxr-xr-x | misc/ufocompile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/misc/ufocompile b/misc/ufocompile index e750acad0..41cfeb043 100755 --- a/misc/ufocompile +++ b/misc/ufocompile @@ -82,6 +82,10 @@ def main(): const=True, default=False, help='Do not build TTF files') argparser.add_argument( + '--cufo', dest='cufo', action='store_const', + const=True, default=False, help='Only compile composite UFO') + + argparser.add_argument( '--out', dest='out', metavar='<dir>', type=str, default=default_out_dir, help='Write output to <dir> instead of the default (%r)' % default_out_dir) @@ -137,6 +141,9 @@ def main(): rg.font, BASEDIR, os.path.join(srcDir,'fontbuild.cfg'), buildTag=buildTag) proj.builddir = args.out + if args.cufo: + proj.justCompileUFO = True + # panose for entire family panose = { 'bFamilyType': 2, # Latin Text @@ -225,7 +232,7 @@ def main(): panose=mkpanose(9)) # generate TTFs - if args.no_ttf == False: + if args.no_ttf == False and args.cufo == False: proj.generateTTFs() if not ALL: |