Lines Matching refs:ttx
6 from fontTools import ttx
70 ttx.parseOptions([])
78 ttx.parseOptions([file_path])
85 jobs, _ = ttx.parseOptions([temp_path])
99 _, _ = ttx.parseOptions([temp_path]) # this is NOT a mistake
100 jobs, _ = ttx.parseOptions([temp_path])
114 jobs, _ = ttx.parseOptions([temp_path])
128 _, _ = ttx.parseOptions([temp_path]) # this is NOT a mistake
129 jobs, _ = ttx.parseOptions([temp_path])
146 jobs, _ = ttx.parseOptions(temp_paths)
168 jobs, _ = ttx.parseOptions(temp_paths)
188 jobs, options = ttx.parseOptions(args)
195 ttx.process(jobs, options)
218 jobs, options = ttx.parseOptions(args)
227 ttx.process(jobs, options)
258 self.assertEqual(ttx.guessFileType(font_path), "TTF")
263 self.assertEqual(ttx.guessFileType(font_path), "OTF")
268 self.assertEqual(ttx.guessFileType(font_path), "WOFF")
273 self.assertEqual(ttx.guessFileType(font_path), "WOFF2")
278 self.assertEqual(ttx.guessFileType(font_path), "TTC")
283 self.assertEqual(ttx.guessFileType(font_path), "TTF")
288 self.assertEqual(ttx.guessFileType(font_path), "TTX")
293 self.assertEqual(ttx.guessFileType(font_path), "OTX")
298 self.assertEqual(ttx.guessFileType(font_path), "TTX")
303 self.assertEqual(ttx.guessFileType(font_path), "TTX")
308 self.assertIsNone(ttx.guessFileType(font_path))
312 self.assertIsNone(ttx.guessFileType(font_path))
322 ttx.Options([("-h", None)], 1)
330 ttx.Options([("--version", None)], 1)
342 tto = ttx.Options([("-d", temp_dir_path)], 1)
348 ttx.Options([("-d", "bogusdir")], 1)
352 tto = ttx.Options([("-o", "testfile.ttx")], 1)
357 tto = ttx.Options([("-f", "")], 1)
362 tto = ttx.Options([("-v", "")], 1)
368 tto = ttx.Options([("-q", "")], 1)
374 tto = ttx.Options([("-l", "")], 1)
379 tto = ttx.Options([("-t", "CFF2")], 1)
385 tto = ttx.Options([("-t", "CFF")], 1)
391 tto = ttx.Options([("-s", "")], 1)
397 tto = ttx.Options([("-g", "")], 1)
403 tto = ttx.Options([("-i", "")], 1)
410 tto = ttx.Options([("-z", option)], 1)
416 ttx.Options([("-z", "bogus")], 1)
420 tto = ttx.Options([("-y", "1")], 1)
426 ttx.Options([("-y", "A")], 1)
430 tto = ttx.Options([("-m", "testfont.ttf")], 1)
435 tto = ttx.Options([("-b", "")], 1)
440 tto = ttx.Options([("-a", "")], 1)
445 tto = ttx.Options([("-e", "")], 1)
450 tto = ttx.Options([("--unicodedata", "UnicodeData.txt")], 1)
455 tto = ttx.Options([("--newline", "LF")], 1)
460 tto = ttx.Options([("--newline", "CR")], 1)
465 tto = ttx.Options([("--newline", "CRLF")], 1)
471 ttx.Options([("--newline", "BOGUS")], 1)
475 tto = ttx.Options([("--recalc-timestamp", "")], 1)
480 tto = ttx.Options([("--no-recalc-timestamp", "")], 1)
485 tto = ttx.Options([("--flavor", "woff")], 1)
490 tto = ttx.Options([("--with-zopfli", ""), ("--flavor", "woff")], 1)
496 ttx.Options([("--with-zopfli", "")], 1)
501 ttx.Options([("-q", ""), ("-v", "")], 1)
506 ttx.Options([("-m", "testfont.ttf"), ("--flavor", "woff")], 1)
511 ttx.Options([("-t", "CFF"), ("-x", "CFF2")], 1)
516 ttx.Options([("-m", "testfont.ttf")], 2)
521 ttx.Options([("--with-zopfli", ""), ("--flavor", "woff2")], 1)
533 default_options = ttx.Options([], 1)
534 ttx.ttCompile(inttx, str(outotf), default_options)
558 options = ttx.Options([], 1)
560 ttx.ttCompile(inttx, str(outwoff), options)
585 options = ttx.Options([], 1)
588 ttx.ttCompile(inttx, str(outwoff), options)
613 options = ttx.Options([], 1)
615 ttx.ttCompile(inttx, str(outwoff2), options)
640 default_options = ttx.Options([], 1)
641 ttx.ttCompile(inttx, str(outttf), default_options)
670 options = ttx.Options([], 1)
672 ttx.ttCompile(inttx, str(outwoff), options)
702 options = ttx.Options([], 1)
705 ttx.ttCompile(inttx, str(outwoff), options)
735 options = ttx.Options([], 1)
737 ttx.ttCompile(inttx, str(outwoff2), options)
775 options = ttx.Options([], 1)
777 ttx.ttCompile(inttx, str(outttf1), options)
788 ttx.ttCompile(inttx, str(outttf2), options)
799 ttx.ttCompile(inttx, str(outttf2), options)
814 options = ttx.Options([], 1)
816 ttx.ttList(inpath, str(fakeoutpath), options)
845 options = ttx.Options([], 1)
847 ttx.ttList(inpath, str(fakeoutpath), options)
871 options = ttx.Options([], 1)
874 ttx.ttList(inpath, str(fakeoutpath), options)
899 options = ttx.Options([], 1)
902 ttx.ttList(inpath, str(fakeoutpath), options)
936 ttx.main(args)
944 ttx.main(args)
953 ttx.main(args)
962 ttx, "process", (lambda x, y: raise_exception(KeyboardInterrupt))
964 ttx.main(args)
980 ttx, "process", (lambda x, y: raise_exception(SystemExit))
982 ttx.main(args)
991 ttx,
995 ttx.main(args)
1011 ttx,
1015 ttx.main(args)