diff --git a/setup.py b/setup.py index 6d9851a..020ffe5 100755 --- a/setup.py +++ b/setup.py @@ -67,7 +67,7 @@ def build_extension(self, ext): dest_path = self.get_ext_fullpath(ext.name) mkpath(os.path.dirname(dest_path), verbose=self.verbose, dry_run=self.dry_run) - copy_file(exe_fullpath, dest_path, verbose=self.verbose, dry_run=self.dry_run) + copy_file(exe_fullpath, dest_path, verbose=self.verbose) cmdclass["build_ext"] = ExecutableBuildExt diff --git a/src/cffsubr/__init__.py b/src/cffsubr/__init__.py index 0c47c2f..9b7446a 100644 --- a/src/cffsubr/__init__.py +++ b/src/cffsubr/__init__.py @@ -92,7 +92,14 @@ def _tx_subroutinize(data: bytes, output_format: str = CFFTableTag.CFF) -> bytes with tempfile.NamedTemporaryFile(prefix="tx-", delete=False) as input_tmp: input_tmp.write(data) - args = [f"-{output_format.rstrip().lower()}", "+S", "+b"] + args = [ + f"-{output_format.rstrip().lower()}", + "+S", # subroutinize + "+b", # preserve glyph order + "-E", # don't optimize for embedding + "-F", # don't optimize Family zones + "-O", # don't optimize for ROM + ] kwargs = dict(check=True, stderr=subprocess.PIPE) if sys.platform == "win32":