diff options
author | Rasmus Andersson <rasmus@notion.se> | 2018-09-03 22:55:49 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2018-09-03 22:55:49 +0300 |
commit | c833e252c925e8dd68108660710ca835d95daa6f (patch) | |
tree | 6b2e28264ed45efd7f054e453b622098d0d875b8 /misc/check-font.py | |
parent | 8c1a4c181ef12000179dfec541f1af87e9b03122 (diff) | |
download | inter-c833e252c925e8dd68108660710ca835d95daa6f.tar.xz |
Major overhaul, moving from UFO2 to Glyphs and UFO3, plus a brand new and much simpler fontbuild
Diffstat (limited to 'misc/check-font.py')
-rwxr-xr-x | misc/check-font.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/misc/check-font.py b/misc/check-font.py deleted file mode 100755 index e7c432cad..000000000 --- a/misc/check-font.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python -# encoding: utf8 -from __future__ import print_function -import os, sys -from argparse import ArgumentParser -from multiprocessing import Pool -import extractor, defcon - - -def check_font(filename): - print('check %s' % filename) - ufo = defcon.Font() - extractor.extractUFO(filename, ufo, doGlyphs=True, doInfo=True, doKerning=True) - - -def main(argv=None): - opts = ArgumentParser(description='Check') - - opts.add_argument( - 'fontFiles', metavar='<file>', type=str, nargs='+', - help='Font files (otf, ttf, woff, woff2, pfa, pfb, ttx)') - - args = opts.parse_args(argv) - - if len(args.fontFiles) == 1: - check_font(args.fontFiles[0]) - else: - p = Pool(8) - p.map(check_font, args.fontFiles) - p.terminate() - - -if __name__ == '__main__': - main() |