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