Skip to content

Commit

Permalink
Make subroutining opt-out
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Oct 25, 2024
1 parent 7785fdc commit ab9ad30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fontra_compile/compile_varc_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
class FontraCompileAction:
destination: str
input: ReadableFontBackend | None = field(init=False, default=None)
subroutinize: bool = True

@asynccontextmanager
async def connect(
Expand All @@ -33,7 +34,9 @@ async def process(
outputFontPath = outputDir / self.destination
assert self.input is not None
builder = Builder(
reader=self.input, buildCFF2=outputFontPath.suffix.lower() == ".otf"
reader=self.input,
buildCFF2=outputFontPath.suffix.lower() == ".otf",
subroutinize=self.subroutinize,
)
await builder.setup()
ttFont = await builder.build()
Expand Down

0 comments on commit ab9ad30

Please sign in to comment.