Skip to content

Commit

Permalink
Tweak args and use OTFCompiler to compile each source
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Dec 4, 2023
1 parent 0d85f26 commit 36a4408
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/ufo2ft/_compilers/interpolatableOTFCompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ def compile_designspace(self, designSpaceDoc):
_tables=SPARSE_OTF_MASTER_TABLES if source.layerName else None,
),
}
compiler = InterpolatableOTFCompiler(**args)
# Remove interpolatable-specific args
del args["variableFontNames"]
del args["excludeVariationTables"]
compiler = OTFCompiler(**args)
self.extraSubstitutions = save_extraSubstitutions
otfs.append(compiler.compile(source.font))
return self._post_compile_designspace(designSpaceDoc, otfs)
Expand Down

0 comments on commit 36a4408

Please sign in to comment.