Skip to content

Commit

Permalink
Add --no-cff-subroutinize flag
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Oct 25, 2024
1 parent ab9ad30 commit 82604c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/fontra_compile/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 82604c7

Please sign in to comment.