diff --git a/src/fontra_compile/builder.py b/src/fontra_compile/builder.py index 7f5dab0..b2c6e1d 100644 --- a/src/fontra_compile/builder.py +++ b/src/fontra_compile/builder.py @@ -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() @@ -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