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