mvar.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. MVAR_ENTRIES = {
  2. "hasc": ("OS/2", "sTypoAscender"), # horizontal ascender
  3. "hdsc": ("OS/2", "sTypoDescender"), # horizontal descender
  4. "hlgp": ("OS/2", "sTypoLineGap"), # horizontal line gap
  5. "hcla": ("OS/2", "usWinAscent"), # horizontal clipping ascent
  6. "hcld": ("OS/2", "usWinDescent"), # horizontal clipping descent
  7. "vasc": ("vhea", "ascent"), # vertical ascender
  8. "vdsc": ("vhea", "descent"), # vertical descender
  9. "vlgp": ("vhea", "lineGap"), # vertical line gap
  10. "hcrs": ("hhea", "caretSlopeRise"), # horizontal caret rise
  11. "hcrn": ("hhea", "caretSlopeRun"), # horizontal caret run
  12. "hcof": ("hhea", "caretOffset"), # horizontal caret offset
  13. "vcrs": ("vhea", "caretSlopeRise"), # vertical caret rise
  14. "vcrn": ("vhea", "caretSlopeRun"), # vertical caret run
  15. "vcof": ("vhea", "caretOffset"), # vertical caret offset
  16. "xhgt": ("OS/2", "sxHeight"), # x height
  17. "cpht": ("OS/2", "sCapHeight"), # cap height
  18. "sbxs": ("OS/2", "ySubscriptXSize"), # subscript em x size
  19. "sbys": ("OS/2", "ySubscriptYSize"), # subscript em y size
  20. "sbxo": ("OS/2", "ySubscriptXOffset"), # subscript em x offset
  21. "sbyo": ("OS/2", "ySubscriptYOffset"), # subscript em y offset
  22. "spxs": ("OS/2", "ySuperscriptXSize"), # superscript em x size
  23. "spys": ("OS/2", "ySuperscriptYSize"), # superscript em y size
  24. "spxo": ("OS/2", "ySuperscriptXOffset"), # superscript em x offset
  25. "spyo": ("OS/2", "ySuperscriptYOffset"), # superscript em y offset
  26. "strs": ("OS/2", "yStrikeoutSize"), # strikeout size
  27. "stro": ("OS/2", "yStrikeoutPosition"), # strikeout offset
  28. "unds": ("post", "underlineThickness"), # underline size
  29. "undo": ("post", "underlinePosition"), # underline offset
  30. #'gsp0': ('gasp', 'gaspRange[0].rangeMaxPPEM'), # gaspRange[0]
  31. #'gsp1': ('gasp', 'gaspRange[1].rangeMaxPPEM'), # gaspRange[1]
  32. #'gsp2': ('gasp', 'gaspRange[2].rangeMaxPPEM'), # gaspRange[2]
  33. #'gsp3': ('gasp', 'gaspRange[3].rangeMaxPPEM'), # gaspRange[3]
  34. #'gsp4': ('gasp', 'gaspRange[4].rangeMaxPPEM'), # gaspRange[4]
  35. #'gsp5': ('gasp', 'gaspRange[5].rangeMaxPPEM'), # gaspRange[5]
  36. #'gsp6': ('gasp', 'gaspRange[6].rangeMaxPPEM'), # gaspRange[6]
  37. #'gsp7': ('gasp', 'gaspRange[7].rangeMaxPPEM'), # gaspRange[7]
  38. #'gsp8': ('gasp', 'gaspRange[8].rangeMaxPPEM'), # gaspRange[8]
  39. #'gsp9': ('gasp', 'gaspRange[9].rangeMaxPPEM'), # gaspRange[9]
  40. }