Skip to content

Commit a7d6636

Browse files
authored
Merge pull request adobe-type-tools#6 from adobe-type-tools/kd-update-script
[generateAllMarkFiles.py] Update script for markFeatureWriter updates
2 parents 0c87af3 + d05785c commit a7d6636

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

generateAllMarkFiles.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@
2929
libraryNotFound = True
3030

3131

32+
def initArgs(font):
33+
args = markFeatureWriter.Defaults()
34+
args.input_file = font
35+
args.write_classes = True
36+
args.write_mkmk = True
37+
args.indic_format = True
38+
args.trim_tags = True
39+
return args
40+
3241
def getFontPaths(startpath):
3342
font_paths = []
3443
for dir_path, _, _ in os.walk(startpath):
@@ -53,12 +62,7 @@ def doTask(fonts, startpath):
5362
print('*' * len(exportMessage))
5463
print(exportMessage)
5564

56-
markFeatureWriter.run(font,
57-
write_classes=True,
58-
write_mkmk=True,
59-
indic_format=True,
60-
trim_tags=True,
61-
)
65+
markFeatureWriter.MarkFeatureWriter(initArgs(font))
6266
os.chdir(startpath)
6367

6468

0 commit comments

Comments
 (0)