Use MidJutCenter
for top/bottom serif of ten more characters. (#2791)
This commit is contained in:
parent
7e39ab91ba
commit
a778e7e08b
15 changed files with 33 additions and 25 deletions
|
@ -8,7 +8,6 @@ glyph-module
|
|||
glyph-block Letter-Armenian-Ca : begin
|
||||
glyph-block-import CommonShapes
|
||||
glyph-block-import Common-Derivatives
|
||||
glyph-block-import Letter-Shared-Shapes : SerifFrame
|
||||
|
||||
# Common Params
|
||||
define barPos : XH / 2
|
||||
|
|
|
@ -25,9 +25,9 @@ glyph-block Letter-Armenian-Feh : begin
|
|||
widths.rhs sw
|
||||
straight.right.start df.middle midyTop [heading Rightward]
|
||||
archv
|
||||
g4 (df.rightSB - OX) [mix midyTop 0 (adb / (ada + adb))]
|
||||
hookend 0 (sw -- sw)
|
||||
g4 (df.leftSB + OX) (0 + hook)
|
||||
g4 (df.rightSB - OX) [mix midyTop bot (adb / (ada + adb))]
|
||||
hookend bot (sw -- sw)
|
||||
g4 (df.leftSB + OX) (bot + hook)
|
||||
|
||||
create-glyph 'armn/Feh' 0x556 : glyph-proc
|
||||
local df : include : DivFrame para.advanceScaleM 3
|
||||
|
@ -51,4 +51,4 @@ glyph-block Letter-Armenian-Feh : begin
|
|||
include : VBar.m df.middle Descender Ascender sw
|
||||
if SLAB : begin
|
||||
local sf : SerifFrame.fromDf df Ascender Descender (swSerif -- sw)
|
||||
include sf.mb.full
|
||||
include sf.mb.fullCenter
|
||||
|
|
|
@ -8,7 +8,6 @@ glyph-module
|
|||
glyph-block Letter-Armenian-Lower-Sha-Group : begin
|
||||
glyph-block-import CommonShapes
|
||||
glyph-block-import Common-Derivatives
|
||||
glyph-block-import Letter-Shared-Shapes : SerifFrame
|
||||
glyph-block-import Letter-Armenian-Shared-Shapes : ArmHBar TwoNeck
|
||||
|
||||
# Common Params
|
||||
|
|
|
@ -419,7 +419,7 @@ glyph-block Letter-Armenian-Lower-U-Group : begin
|
|||
include : if ([not para.isItalic] && sf.enoughSpaceForFullSerifs)
|
||||
composite-proc sf.lt.outer sf.rb.full
|
||||
composite-proc sf.lt.outer sf.rb.outer
|
||||
include : composite-proc sf2.mt.left sf2.mb.full
|
||||
include : composite-proc sf2.mt.left sf2.mb.fullCenter
|
||||
|
||||
do "Ew"
|
||||
create-glyph 'armn/ew' 0x587 : glyph-proc
|
||||
|
|
|
@ -8,7 +8,6 @@ glyph-module
|
|||
glyph-block Letter-Armenian-Shared-Shapes : begin
|
||||
glyph-block-import CommonShapes
|
||||
glyph-block-import Common-Derivatives
|
||||
glyph-block-import Letter-Shared-Shapes : SerifFrame
|
||||
|
||||
define barPos : XH / 2
|
||||
define highBarPos XH
|
||||
|
|
|
@ -8,7 +8,6 @@ glyph-module
|
|||
glyph-block Letter-Armenian-Upper-Co : begin
|
||||
glyph-block-import CommonShapes
|
||||
glyph-block-import Common-Derivatives
|
||||
glyph-block-import Letter-Shared-Shapes : SerifFrame
|
||||
|
||||
# Common Params
|
||||
define barPos : XH / 2
|
||||
|
|
|
@ -9,7 +9,6 @@ glyph-block Letter-Armenian-Upper-Dza : begin
|
|||
glyph-block-import CommonShapes
|
||||
glyph-block-import Common-Derivatives
|
||||
glyph-block-import Letter-Shared-Shapes : CurlyTail
|
||||
glyph-block-import Letter-Shared-Shapes : SerifFrame
|
||||
|
||||
# Common Params
|
||||
define barPos : XH / 2
|
||||
|
|
|
@ -8,7 +8,6 @@ glyph-module
|
|||
glyph-block Letter-Armenian-Upper-Yi : begin
|
||||
glyph-block-import CommonShapes
|
||||
glyph-block-import Common-Derivatives
|
||||
glyph-block-import Letter-Shared-Shapes : SerifFrame
|
||||
glyph-block-import Letter-Cyrillic-Ze : CyrZe
|
||||
|
||||
do "Yi"
|
||||
|
|
|
@ -8,7 +8,6 @@ glyph-module
|
|||
glyph-block Letter-Armenian-Upper-Za-Group : begin
|
||||
glyph-block-import CommonShapes
|
||||
glyph-block-import Common-Derivatives
|
||||
glyph-block-import Letter-Shared-Shapes : SerifFrame
|
||||
glyph-block-import Letter-Armenian-Shared-Shapes : ArmHBar
|
||||
|
||||
do "Za"
|
||||
|
|
|
@ -22,7 +22,7 @@ glyph-block Letter-Cyrillic-Djerv : begin
|
|||
local sf : SerifFrame.fromDf df top 0
|
||||
include sf.lb.full
|
||||
include sf.rb.full
|
||||
include sf.mt.full
|
||||
include sf.mt.fullCenter
|
||||
|
||||
include : LetterBarOverlay.m.in
|
||||
x -- df.middle
|
||||
|
|
|
@ -106,7 +106,7 @@ glyph-block Letter-Greek-Phi : begin
|
|||
DiagTail.L df.middle y1 [DiagTail.StdDepth dfHook sw] sw
|
||||
|
||||
define [MtSerif df y sw] : tagged 'serifMT' : HSerif.lt df.middle y Jut sw
|
||||
define [MbSerif df y sw] : tagged 'serifMB' : HSerif.mb df.middle y Jut sw
|
||||
define [MbSerif df y sw] : tagged 'serifMB' : HSerif.mb df.middle y MidJutCenter sw
|
||||
|
||||
glyph-block-export yCapitalPhiBowlBot yCapitalPhiBowlTop
|
||||
define [yCapitalPhiBowlBot top slab] : mix [if slab Stroke 0] [if slab (top - Stroke) top] 0.125
|
||||
|
@ -182,8 +182,8 @@ glyph-block Letter-Greek-Phi : begin
|
|||
include [refer-glyph 'grek/varphi'] AS_BASE ALSO_METRICS
|
||||
|
||||
if SLAB : begin
|
||||
include : tagged 'serifMT' : HSerif.mt df.middle Ascender Jut
|
||||
include : tagged 'serifMB' : HSerif.mb df.middle Descender Jut
|
||||
include : tagged 'serifMT' : HSerif.mt df.middle Ascender MidJutCenter
|
||||
include : tagged 'serifMB' : HSerif.mb df.middle Descender MidJutCenter
|
||||
|
||||
define CyrlLowerEfConfig : SuffixCfg.weave
|
||||
object # bowl
|
||||
|
|
|
@ -8,7 +8,6 @@ glyph-module
|
|||
glyph-block Letter-Latin-Glottal-Stop : begin
|
||||
glyph-block-import CommonShapes
|
||||
glyph-block-import Common-Derivatives
|
||||
glyph-block-import Mark-Shared-Metrics : markHalfStroke
|
||||
glyph-block-import Letter-Shared : CreateTurnedLetter
|
||||
glyph-block-import Letter-Shared-Shapes : LetterBarOverlay CurlyTail
|
||||
|
||||
|
@ -23,9 +22,20 @@ glyph-block Letter-Latin-Glottal-Stop : begin
|
|||
flat (Middle + [HSwToV HalfStroke]) (XH * 0.3)
|
||||
curl (Middle + [HSwToV HalfStroke]) 0 [heading Downward]
|
||||
if SLAB : begin
|
||||
include : HSerif.mb Middle 0 Jut
|
||||
include : HSerif.mb Middle 0 MidJutCenter
|
||||
|
||||
alias 'capGlottalStop' 0x241 'glottalStop'
|
||||
create-glyph 'capGlottalStop' 0x241 : glyph-proc
|
||||
include : MarkSet.capital
|
||||
include : dispiro
|
||||
widths.rhs
|
||||
g4 SB (CAP - Hook)
|
||||
hookstart CAP
|
||||
g4 RightSB (CAP - [AdviceGlottalStopArchDepth CAP 1])
|
||||
alsoThru.g2 0.5 0.5 important
|
||||
flat (Middle + [HSwToV HalfStroke]) (XH * 0.3)
|
||||
curl (Middle + [HSwToV HalfStroke]) 0 [heading Downward]
|
||||
if SLAB : begin
|
||||
include : HSerif.mb Middle 0 MidJutCenter
|
||||
|
||||
create-glyph 'revGlottalStop' 0x295 : glyph-proc
|
||||
include : MarkSet.b
|
||||
|
@ -38,7 +48,7 @@ glyph-block Letter-Latin-Glottal-Stop : begin
|
|||
flat (Middle - [HSwToV HalfStroke]) (XH * 0.3)
|
||||
curl (Middle - [HSwToV HalfStroke]) 0 [heading Downward]
|
||||
if SLAB : begin
|
||||
include : HSerif.mb Middle 0 Jut
|
||||
include : HSerif.mb Middle 0 MidJutCenter
|
||||
|
||||
create-glyph 'smallGlottalStop' 0x242 : glyph-proc
|
||||
include : MarkSet.e
|
||||
|
@ -51,7 +61,7 @@ glyph-block Letter-Latin-Glottal-Stop : begin
|
|||
flat (Middle + [HSwToV HalfStroke]) (XH * 0.15)
|
||||
curl (Middle + [HSwToV HalfStroke]) 0 [heading Downward]
|
||||
if SLAB : begin
|
||||
include : HSerif.mb Middle 0 Jut
|
||||
include : HSerif.mb Middle 0 MidJutCenter
|
||||
|
||||
create-glyph 'smallRevGlottalStop' : glyph-proc
|
||||
include : MarkSet.e
|
||||
|
@ -64,7 +74,7 @@ glyph-block Letter-Latin-Glottal-Stop : begin
|
|||
flat (Middle - [HSwToV HalfStroke]) (XH * 0.15)
|
||||
curl (Middle - [HSwToV HalfStroke]) 0 [heading Downward]
|
||||
if SLAB : begin
|
||||
include : HSerif.mb Middle 0 Jut
|
||||
include : HSerif.mb Middle 0 MidJutCenter
|
||||
|
||||
CreateTurnedLetter 'invGlottalStop' 0x296 'revGlottalStop' HalfAdvance (Ascender / 2)
|
||||
|
||||
|
@ -83,7 +93,7 @@ glyph-block Letter-Latin-Glottal-Stop : begin
|
|||
CurlyTail.n fine 0 SB RightSB 0 yMid
|
||||
|
||||
if SLAB : begin
|
||||
include : HSerif.mt Middle Ascender Jut
|
||||
include : HSerif.mt Middle Ascender MidJutCenter
|
||||
|
||||
|
||||
create-glyph 'glottalStopBar' 0x2A1 : glyph-proc
|
||||
|
|
|
@ -42,4 +42,4 @@ glyph-block Letter-Latin-Lower-DB-QP : begin
|
|||
include : FlipAround df.middle (XH / 2)
|
||||
include : VBar.m df.middle Descender 0 df.mvs
|
||||
if SLAB : begin
|
||||
include : HSerif.mb df.middle Descender Jut
|
||||
include : HSerif.mb df.middle Descender MidJutCenter
|
||||
|
|
|
@ -43,7 +43,7 @@ glyph-block Letter-Latin-Upper-Y : begin
|
|||
include : tagged 'strokeVMid' : VBar.m Middle bot (cross + HalfStroke)
|
||||
set-base-anchor 'overlay' Middle cross
|
||||
set-base-anchor 'overlayOnExtension' Middle
|
||||
[mix (bot + [if (slabType === SLAB-NONE || slabType === SLAB-BASE) 0 Stroke]) cross 0.5] + (Stroke - OverlayStroke) / 2
|
||||
[mix (bot + [if (slabType === SLAB-ALL || slabType === SLAB-BASE) Stroke 0]) cross 0.5] + (Stroke - OverlayStroke) / 2
|
||||
|
||||
define [YenOverlayShape slabType] : glyph-proc
|
||||
define { ks bot } : match slabType
|
||||
|
|
|
@ -702,6 +702,7 @@ glyph-block Letter-Shared-Shapes : begin
|
|||
|
||||
|
||||
local jutFS MidJutSide
|
||||
local jutFC MidJutCenter
|
||||
local jut : mix [HSwToV : 0.5 * swRef] Jut : Math.min 1 : adws * 2.25 / hSplit
|
||||
local sideJut : jut - 0.5 * ink
|
||||
|
||||
|
@ -746,6 +747,8 @@ glyph-block Letter-Shared-Shapes : begin
|
|||
set this.mb : object
|
||||
full : tagged 'serifMB' : HSerif.mbAsymmetric [mix lBarCenter rBarCenter 0.5] bot jutIn jutIn swSerif
|
||||
[fullAt x] : tagged 'serifMB' : HSerif.mbAsymmetric x bot jutIn jutIn swSerif
|
||||
fullCenter : tagged 'serifMB' : HSerif.mbAsymmetric [mix lBarCenter rBarCenter 0.5] bot jutFC jutFC swSerif
|
||||
[fullCenterAt x] : tagged 'serifMB' : HSerif.mbAsymmetric x bot jutFC jutFC swSerif
|
||||
left : tagged 'serifMB' : HSerif.mbAsymmetric [mix lBarCenter rBarCenter 0.5] bot jutIn 0 swSerif
|
||||
[leftAt x] : tagged 'serifMB' : HSerif.mbAsymmetric x bot jutIn 0 swSerif
|
||||
right : tagged 'serifMB' : HSerif.mbAsymmetric [mix lBarCenter rBarCenter 0.5] bot 0 jutIn swSerif
|
||||
|
@ -753,6 +756,8 @@ glyph-block Letter-Shared-Shapes : begin
|
|||
set this.mt : object
|
||||
full : tagged 'serifMT' : HSerif.mtAsymmetric [mix lBarCenter rBarCenter 0.5] top jutIn jutIn swSerif
|
||||
[fullAt x] : tagged 'serifMT' : HSerif.mtAsymmetric x top jutIn jutIn swSerif
|
||||
fullCenter : tagged 'serifMT' : HSerif.mtAsymmetric [mix lBarCenter rBarCenter 0.5] top jutFC jutFC swSerif
|
||||
[fullCenterAt x] : tagged 'serifMT' : HSerif.mtAsymmetric x top jutFC jutFC swSerif
|
||||
left : tagged 'serifMT' : HSerif.mtAsymmetric [mix lBarCenter rBarCenter 0.5] top jutIn 0 swSerif
|
||||
[leftAt x] : tagged 'serifMT' : HSerif.mtAsymmetric x top jutIn 0 swSerif
|
||||
right : tagged 'serifMT' : HSerif.mtAsymmetric [mix lBarCenter rBarCenter 0.5] top 0 jutIn swSerif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue