change name to descenderPad
This commit is contained in:
parent
1560ffb68f
commit
196a0dd1ee
|
@ -512,15 +512,15 @@ export as build : define [buildFont para recursive recursiveCodes] : begin
|
|||
# Note: we use 1000upm in design, and (1000 * upmsacle)upm in production, to avoid rounding error.
|
||||
|
||||
let [asc : para.leading * CAP / (CAP - DESCENDER)] [desc : para.leading * DESCENDER / (CAP - DESCENDER)] : begin
|
||||
local bottomPad : fallback para.linegap 0
|
||||
local descenderPad : fallback para.descenderPad 0
|
||||
set font.head.unitsPerEm 1000
|
||||
set font.hhea.ascender asc
|
||||
set font.OS_2.usWinAscent asc
|
||||
set font.OS_2.sTypoAscender asc
|
||||
|
||||
set font.hhea.descender (DESCENDER - bottomPad)
|
||||
set font.OS_2.usWinDescent ([Math.abs desc] + bottomPad)
|
||||
set font.OS_2.sTypoDescender (desc - bottomPad)
|
||||
set font.hhea.descender (DESCENDER - descenderPad)
|
||||
set font.OS_2.usWinDescent ([Math.abs desc] + descenderPad)
|
||||
set font.OS_2.sTypoDescender (desc - descenderPad)
|
||||
|
||||
set font.hhea.lineGap (para.leading - asc + DESCENDER)
|
||||
set font.OS_2.sTypoLineGap (para.leading - asc + desc)
|
||||
|
|
|
@ -6,7 +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 # Default line height times 1000.
|
||||
linegap = 0 # Additional line height, added to descender.
|
||||
descenderPad = 0 # Additional line height, 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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user