diff --git a/glyphs/symbol-punctuation.ptl b/glyphs/symbol-punctuation.ptl index 5733dd5..aba704d 100644 --- a/glyphs/symbol-punctuation.ptl +++ b/glyphs/symbol-punctuation.ptl @@ -414,11 +414,17 @@ symbol-block 'Typographic Symbols' symbol-block 'Dashes' - create-glyph 'underscore' : glyph-construction + create-glyph 'underscore.high' : glyph-construction set-width WIDTH assign-unicode '_' include : HBarBottom SB RIGHTSB 0 + + composite 'underscore.low' glyphs.'underscore.high' [Upright] [Translate 0 (DESCENDER * 0.9)] [Italify] + select-variant 'underscore' '_' 'high' { + .cv20 'underscore.high' + .cv21 'underscore.low' + } create-glyph 'overline' : glyph-construction assign-unicode 0x203E @@ -768,4 +774,4 @@ symbol-block 'Double-width punctuations' dwl nothing 0xFF0C 'comma' dwl nothing 0xFF0E 'period' dwr nothing 0xFF08 'parenLeft' - dwl nothing 0xFF09 'parenRight' \ No newline at end of file + dwl nothing 0xFF09 'parenRight' diff --git a/parameters.toml b/parameters.toml index 00d6e3f..0e8d8cb 100644 --- a/parameters.toml +++ b/parameters.toml @@ -72,8 +72,8 @@ ss05 = ['cv12'] ss06 = ['cv13'] ss07 = ['cv14'] ss08 = ['cv15'] -ss09 = ['cv16', 'cv18'] -ss10 = ['cv17', 'cv19'] +ss09 = ['cv16', 'cv18', 'cv20'] +ss10 = ['cv17', 'cv19', 'cv21'] # Spacings [cjk] @@ -260,4 +260,8 @@ asciitilde = 'low' [v-asterisk-high.variantSelector] asterisk = 'high' [v-asterisk-low.variantSelector] -asterisk = 'low' \ No newline at end of file +asterisk = 'low' +[v-underscore-high.variantSelector] +underscore = 'high' +[v-underscore-low.variantSelector] +underscore = 'low'