Lines Matching refs:ttx
4 from fontTools import ttx
71 ttx.parseOptions([])
79 ttx.parseOptions([file_path])
86 jobs, _ = ttx.parseOptions([temp_path])
100 _, _ = ttx.parseOptions([temp_path]) # this is NOT a mistake
101 jobs, _ = ttx.parseOptions([temp_path])
115 jobs, _ = ttx.parseOptions([temp_path])
129 _, _ = ttx.parseOptions([temp_path]) # this is NOT a mistake
130 jobs, _ = ttx.parseOptions([temp_path])
147 jobs, _ = ttx.parseOptions(temp_paths)
169 jobs, _ = ttx.parseOptions(temp_paths)
189 jobs, options = ttx.parseOptions(args)
196 ttx.process(jobs, options)
219 jobs, options = ttx.parseOptions(args)
228 ttx.process(jobs, options)
259 self.assertEqual(ttx.guessFileType(font_path), "TTF")
264 self.assertEqual(ttx.guessFileType(font_path), "OTF")
269 self.assertEqual(ttx.guessFileType(font_path), "WOFF")
274 self.assertEqual(ttx.guessFileType(font_path), "WOFF2")
279 self.assertEqual(ttx.guessFileType(font_path), "TTC")
284 self.assertEqual(ttx.guessFileType(font_path), "TTF")
289 self.assertEqual(ttx.guessFileType(font_path), "TTX")
294 self.assertEqual(ttx.guessFileType(font_path), "OTX")
299 self.assertEqual(ttx.guessFileType(font_path), "TTX")
304 self.assertEqual(ttx.guessFileType(font_path), "TTX")
309 self.assertIsNone(ttx.guessFileType(font_path))
313 self.assertIsNone(ttx.guessFileType(font_path))
323 ttx.Options([("-h", None)], 1)
331 ttx.Options([("--version", None)], 1)
343 tto = ttx.Options([("-d", temp_dir_path)], 1)
349 ttx.Options([("-d", "bogusdir")], 1)
353 tto = ttx.Options([("-o", "testfile.ttx")], 1)
358 tto = ttx.Options([("-f", "")], 1)
363 tto = ttx.Options([("-v", "")], 1)
369 tto = ttx.Options([("-q", "")], 1)
375 tto = ttx.Options([("-l", "")], 1)
380 tto = ttx.Options([("-t", "CFF2")], 1)
386 tto = ttx.Options([("-t", "CFF")], 1)
392 tto = ttx.Options([("-s", "")], 1)
398 tto = ttx.Options([("-g", "")], 1)
404 tto = ttx.Options([("-i", "")], 1)
411 tto = ttx.Options([("-z", option)], 1)
417 ttx.Options([("-z", "bogus")], 1)
421 tto = ttx.Options([("-y", "1")], 1)
427 ttx.Options([("-y", "A")], 1)
431 tto = ttx.Options([("-m", "testfont.ttf")], 1)
436 tto = ttx.Options([("-b", "")], 1)
441 tto = ttx.Options([("-a", "")], 1)
446 tto = ttx.Options([("-e", "")], 1)
451 tto = ttx.Options([("--unicodedata", "UnicodeData.txt")], 1)
456 tto = ttx.Options([("--newline", "LF")], 1)
461 tto = ttx.Options([("--newline", "CR")], 1)
466 tto = ttx.Options([("--newline", "CRLF")], 1)
472 ttx.Options([("--newline", "BOGUS")], 1)
476 tto = ttx.Options([("--recalc-timestamp", "")], 1)
481 tto = ttx.Options([("--no-recalc-timestamp", "")], 1)
486 tto = ttx.Options([("--flavor", "woff")], 1)
491 tto = ttx.Options([("--with-zopfli", ""), ("--flavor", "woff")], 1)
497 ttx.Options([("--with-zopfli", "")], 1)
502 ttx.Options([("-q", ""), ("-v", "")], 1)
507 ttx.Options([("-m", "testfont.ttf"), ("--flavor", "woff")], 1)
512 ttx.Options([("-t", "CFF"), ("-x", "CFF2")], 1)
517 ttx.Options([("-m", "testfont.ttf")], 2)
522 ttx.Options([("--with-zopfli", ""), ("--flavor", "woff2")], 1)
534 default_options = ttx.Options([], 1)
535 ttx.ttCompile(inttx, str(outotf), default_options)
559 options = ttx.Options([], 1)
561 ttx.ttCompile(inttx, str(outwoff), options)
586 options = ttx.Options([], 1)
589 ttx.ttCompile(inttx, str(outwoff), options)
614 options = ttx.Options([], 1)
616 ttx.ttCompile(inttx, str(outwoff2), options)
641 default_options = ttx.Options([], 1)
642 ttx.ttCompile(inttx, str(outttf), default_options)
671 options = ttx.Options([], 1)
673 ttx.ttCompile(inttx, str(outwoff), options)
703 options = ttx.Options([], 1)
706 ttx.ttCompile(inttx, str(outwoff), options)
736 options = ttx.Options([], 1)
738 ttx.ttCompile(inttx, str(outwoff2), options)
776 options = ttx.Options([], 1)
778 ttx.ttCompile(inttx, str(outttf1), options)
789 ttx.ttCompile(inttx, str(outttf2), options)
800 ttx.ttCompile(inttx, str(outttf2), options)
815 options = ttx.Options([], 1)
817 ttx.ttList(inpath, str(fakeoutpath), options)
846 options = ttx.Options([], 1)
848 ttx.ttList(inpath, str(fakeoutpath), options)
872 options = ttx.Options([], 1)
875 ttx.ttList(inpath, str(fakeoutpath), options)
900 options = ttx.Options([], 1)
903 ttx.ttList(inpath, str(fakeoutpath), options)
937 ttx.main(args)
945 ttx.main(args)
954 ttx.main(args)
963 ttx, "process", (lambda x, y: raise_exception(KeyboardInterrupt))
965 ttx.main(args)
980 ttx, "process", (lambda x, y: raise_exception(SystemExit))
982 ttx.main(args)
991 ttx,
995 ttx.main(args)
1010 ttx,
1014 ttx.main(args)