updateMetrics.py 644 B

12345678910111213141516171819
  1. for font in AllFonts():
  2. print(font.info.openTypeOS2TypoLineGap)
  3. print(font.info.openTypeOS2WinAscent)
  4. print(font.info.openTypeOS2WinDescent)
  5. print(font.info.openTypeHheaLineGap)
  6. font.info.openTypeHheaAscender = 1900
  7. font.info.openTypeHheaDescender = -500
  8. font.info.openTypeHheaLineGap = 0
  9. font.info.openTypeOS2TypoLineGap = 102
  10. font.info.openTypeOS2WinAscent = 1946
  11. font.info.openTypeOS2WinDescent = 512
  12. print(font.info.openTypeOS2TypoLineGap)
  13. print(font.info.openTypeOS2WinAscent)
  14. print(font.info.openTypeOS2WinDescent)
  15. print(font.info.openTypeHheaLineGap)
  16. font.save()