Add an additional linegap parameter to increase descender under

This commit is contained in:
be5invis 2016-05-03 00:20:26 +08:00
parent 4fa5176ca9
commit d71c135c73
2 changed files with 4 additions and 3 deletions

View File

@ -517,9 +517,9 @@ export as build : define [buildFont para recursive recursiveCodes] : begin
set font.OS_2.usWinAscent asc
set font.OS_2.sTypoAscender asc
set font.hhea.descender DESCENDER
set font.OS_2.usWinDescent [Math.abs desc]
set font.OS_2.sTypoDescender desc
set font.hhea.descender (DESCENDER - para.linegap)
set font.OS_2.usWinDescent ([Math.abs desc] + para.liengap)
set font.OS_2.sTypoDescender (desc - para.liengap)
set font.hhea.lineGap (para.leading - asc + DESCENDER)
set font.OS_2.sTypoLineGap (para.leading - asc + desc)

View File

@ -6,6 +6,7 @@ copyright = 'Copyright (c) 2015-2016 Belleve Invis.'
licence = '''This font software is licenced under the SIL Open Font Licence, Version 1.1. This is licence is avaliable with a FAQ at: http://scripts.sil.org/OFL. This font software is distributes on an 'AS IS' basis, without warranties or conditions of any kind, either express or implied. See the SIL Open Font licence fot the specific language, premissions and limitations governing your use of this font software.'''
leading = 1250 # Line height times 1000.
linegap = 0 # Additional line gap, added to descender.
width = 500 # Character width. Increase this if you think that Iosevka is too narrow.
cap = 735 # Cap height (as well as ascender).
xheight = 530 # X-height.