Skip to content

Commit 968bcf8

Browse files
committed
Use the newer module kernFeatureWriter instead of WriteFeaturesKernFDK
1 parent c8892a3 commit 968bcf8

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

generateAllKernFiles.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
print "ERROR: This script requires defcon. It can be downloaded from https://github.com/typesupply/defcon"
4343
libraryNotFound = True
4444
try:
45-
import WriteFeaturesKernFDK
45+
import kernFeatureWriter
4646
except:
47-
print "ERROR: This script requires WriteFeaturesKernFDK.py. It can be downloaded from https://github.com/adobe-type-tools/python-modules"
47+
print "ERROR: This script requires kernFeatureWriter.py. It can be downloaded from https://github.com/adobe-type-tools/python-modules"
4848
libraryNotFound = True
4949

5050
if libraryNotFound:
@@ -85,10 +85,7 @@ def doTask(fonts, startpath):
8585
print exportMessage
8686

8787
ufoFont = Font(fontFileName)
88-
WriteFeaturesKernFDK.KernDataClass(
89-
ufoFont, folderPath, minKern,
90-
writeTrimmed, writeSubtables
91-
)
88+
kernFeatureWriter.run(ufoFont, folderPath, minKern, writeSubtables)
9289

9390
os.chdir(startpath)
9491

0 commit comments

Comments
 (0)