浏览代码

[fix-dsig.py, fix-fstype.py] eliminated timestamp recalculation during post-compile OT table mods

Chris Simpkins 7 年之前
父节点
当前提交
43b5ba04f0
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      postbuild_processing/fixes/fix-dsig.py
  2. 1 1
      postbuild_processing/fixes/fix-fstype.py

+ 1 - 1
postbuild_processing/fixes/fix-dsig.py

@@ -39,7 +39,7 @@ def main(argv):
             )
             sys.exit(1)
         else:
-            font = ttLib.TTFont(path)
+            font = ttLib.TTFont(file=path, recalcTimestamp=False)
             set_empty_dsig(font)
             font.save(path)
             print(path + " - successful DSIG table fix")

+ 1 - 1
postbuild_processing/fixes/fix-fstype.py

@@ -30,7 +30,7 @@ def main(argv):
             )
             sys.exit(1)
         else:
-            font = TTFont(path)
+            font = TTFont(file=path, recalcTimestamp=False)
             font['OS/2'].fsType = 0
             font.save(path)
             print(path + " - successful fstype fix")