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 8d2e31a commit 7785fdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fontra_compile/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ class Builder:
reader: ReadableFontBackend # a Fontra Backend, such as DesignspaceBackend
requestedGlyphNames: list = field(default_factory=list)
buildCFF2: bool = False
subroutinize: bool = True

async def setup(self) -> None:
self.glyphMap = await self.reader.getGlyphMap()
Expand Down Expand Up @@ -497,7 +498,7 @@ async def buildFont(self) -> TTFont:
builder.setupOS2()
builder.setupPost()

if self.buildCFF2:
if self.buildCFF2 and self.subroutinize:
cffsubr.subroutinize(builder.font)

return builder.font
Expand Down

0 comments on commit 7785fdc

Please sign in to comment.