- os.path.join(tmpdir, 'font.ttf')
- ]
- env = {"PERL_USE_UNSAFE_INC": "1"}
- if verbose:
- print("Running font-optimizer")
- subprocess.check_call(optimizer_call, env=env)
- else:
- dev_null = open(os.devnull, 'w')
- subprocess.check_call(optimizer_call, stdout=dev_null,
- stderr=dev_null, env=env)
+ '--text=' + ''.join(chars),
+ '--output-file=' + os.path.join(tmpdir, 'font.ttf')
+ ])