drop_mvar.py 235 B

1234567891011121314
  1. from fontTools.ttLib import TTFont
  2. import sys
  3. def main(font_path):
  4. font = TTFont(font_path)
  5. if "MVAR" in font:
  6. del font['MVAR']
  7. font.save(font.reader.file.name)
  8. if __name__ == "__main__":
  9. main(sys.argv[1])