Skip to content

Commit b5b0a4b

Browse files
committed
copy font objects when they are provided
1 parent 768269e commit b5b0a4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

info.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ developer: TypeMyType
33
developerURL: http://typemytype.com
44
launchAtStartUp: true
55
mainScript: main.py
6-
version: '2.5b1'
6+
version: '2.5b2'
77
addToMenu: []
88
html: true
99
requiresVersionMajor: '4'

source/lib/batchGenerators/batchTools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def loadFonts(sourceUFOs):
2323
if isinstance(sourceUFO, str):
2424
font = RFont(sourceUFO, document=False, showInterface=False)
2525
else:
26-
font = sourceUFO
26+
font = sourceUFO.copy()
2727
# check font info
2828
requiredFontInfo = dict(descender=-250, xHeight=500, ascender=750, capHeight=750, unitsPerEm=1000)
2929
for attr, value in requiredFontInfo.items():

0 commit comments

Comments
 (0)