Skip to content

Commit

Permalink
copy the whole operator + all source font objects
Browse files Browse the repository at this point in the history
  • Loading branch information
typemytype committed Nov 29, 2024
1 parent 33e73e7 commit 46d38bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ developer: TypeMyType
developerURL: http://typemytype.com
launchAtStartUp: true
mainScript: main.py
version: '2.5b4'
version: '2.5b5'
addToMenu: []
html: true
requiresVersionMajor: '4'
Expand Down
5 changes: 5 additions & 0 deletions source/lib/batchGenerators/variableFontsGenerator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,11 @@ def build(root, generateOptions, settings, progress, report):
operator = BatchEditorOperator(sourceDesignspace)
else:
operator = sourceDesignspace
operator.doc = operator.doc.deepcopyExceptFonts()
# copy all sources
for key, font in list(operator.fonts.items()):
operator.fonts[key] = font.copy()

# loop over all interpolable operators based on the given variable fonts
for name, interpolableOperator in operator.getInterpolableUFOOperators(useVariableFonts=True):
for binaryFormat, postProcessCallback in binaryFormats:
Expand Down

0 comments on commit 46d38bc

Please sign in to comment.