From 82604c74ba3dc947120a37f088fa6cb6d52ec2f0 Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Fri, 25 Oct 2024 22:50:25 +0200 Subject: [PATCH] Add --no-cff-subroutinize flag --- src/fontra_compile/__main__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fontra_compile/__main__.py b/src/fontra_compile/__main__.py index e85d393..a86ed19 100644 --- a/src/fontra_compile/__main__.py +++ b/src/fontra_compile/__main__.py @@ -16,6 +16,11 @@ async def main_async() -> None: help="Comma- or space-delimited list of glyph names to include. " "When not given, include all glyphs.", ) + parser.add_argument( + "--no-cff-subroutinize", + action="store_true", + help="Don't perform CFF subroutinizing.", + ) args = parser.parse_args() sourceFontPath = pathlib.Path(args.source_font).resolve() @@ -27,6 +32,7 @@ async def main_async() -> None: reader=reader, requestedGlyphNames=glyphNames, buildCFF2=outputFontPath.suffix.lower() == ".otf", + subroutinize=not args.no_cff_subroutinize, ) await builder.setup() ttFont = await builder.build()