Harmonize serif variants between Latin u and Greek mu. (#1830)
* Harmonize serif variants between `u` and `grek/mu` Also further adjust Greek Eta. This makes all serif variants available for lower u also available for lower Greek Mu. Furthermore, as a consequence of being fully merged into `latin/u.ptl`, it now uses the same naming convention for its variants. * fix u on ss16
This commit is contained in:
parent
317864cd2c
commit
cd99ca9086
6 changed files with 156 additions and 80 deletions
|
@ -19,7 +19,6 @@ export : define [apply] : begin
|
|||
run-glyph-module "./greek/lower-zeta.mjs"
|
||||
run-glyph-module "./greek/lower-theta.mjs"
|
||||
run-glyph-module "./greek/lower-kappa-symbol.mjs"
|
||||
run-glyph-module "./greek/lower-mu.mjs"
|
||||
run-glyph-module "./greek/lower-nu.mjs"
|
||||
run-glyph-module "./greek/lower-xi.mjs"
|
||||
run-glyph-module "./greek/lower-rho.mjs"
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
$$include '../../../meta/macros.ptl'
|
||||
|
||||
import [mix linreg clamp fallback] from"../../../support/utils.mjs"
|
||||
|
||||
glyph-module
|
||||
|
||||
|
||||
glyph-block Letter-Greek-Lower-Mu : begin
|
||||
glyph-block-import CommonShapes
|
||||
glyph-block-import Common-Derivatives
|
||||
glyph-block-import Letter-Latin-U
|
||||
|
||||
define SmallMuConfig : object
|
||||
tailless { 'u.toothedSerifless' 'u.toothedSerifed' }
|
||||
tailed { 'u.tailedSerifless' 'u.tailedSerifed' }
|
||||
toothlessCorner { 'u.toothlessCornerSerifless' 'u.toothlessCornerSerifed' }
|
||||
toothlessRounded { 'u.toothlessRoundedSerifless' 'u.toothlessRoundedSerifed' }
|
||||
|
||||
foreach { suffix { ptSerifless ptSerifed } } [Object.entries SmallMuConfig] : do
|
||||
create-glyph "grek/mu.\(suffix)" : glyph-proc
|
||||
include : MarkSet.p
|
||||
include : add-glyph-dependency ptSerifless
|
||||
include : add-glyph-dependency ptSerifed
|
||||
|
||||
include : refer-glyph [if SLAB ptSerifed ptSerifless]
|
||||
include : dispiro
|
||||
widths.rhs
|
||||
flat SB Descender [heading Upward]
|
||||
curl SB (Descender / 2) [heading Upward]
|
||||
straight.up.end SB SmallArchDepthB [widths.heading 0 [AdviceStroke 4] Upward]
|
||||
if SLAB : begin
|
||||
include : HSerif.lt SB XH SideJut
|
||||
|
||||
select-variant 'grek/mu' 0x3BC
|
||||
select-variant 'micro' 0xB5 (shapeFrom -- 'grek/mu')
|
|
@ -147,7 +147,6 @@ glyph-block Letter-Latin-Lower-N : begin
|
|||
set-base-anchor 'lf' (SB + HalfStroke) 0
|
||||
include : Body XH SB RightSB Descender Stroke
|
||||
if sLT : include : sLT XH
|
||||
if sLB : include : sLB 0
|
||||
|
||||
create-glyph "nCrossedTail.\(suffix)" : glyph-proc
|
||||
include : MarkSet.e
|
||||
|
@ -206,11 +205,11 @@ glyph-block Letter-Latin-Lower-N : begin
|
|||
link-reduced-variant 'eng/phoneticRight' 'eng'
|
||||
select-variant 'nHookBottom' 0x273 (follow -- 'eng')
|
||||
select-variant 'nCurlyTail' 0x235 (follow -- 'eng')
|
||||
select-variant 'grek/eta' 0x3B7 (follow -- 'eng')
|
||||
select-variant 'nCrossedTail' 0xAB3B (follow -- 'eng')
|
||||
select-variant 'engCrossedTail' 0xAB3C (follow -- 'eng')
|
||||
select-variant 'RInsular' 0xA782 (follow -- 'eng')
|
||||
select-variant 'rInsular' 0xA783 (follow -- 'eng')
|
||||
select-variant 'grek/eta' 0x3B7
|
||||
select-variant 'NExt' 0x220 (follow -- 'n')
|
||||
select-variant 'nExt' 0x19E (follow -- 'n')
|
||||
|
||||
|
|
|
@ -191,6 +191,17 @@ glyph-block Letter-Latin-U : begin
|
|||
include : Base df XH
|
||||
include : Slabs df XH
|
||||
|
||||
create-glyph "grek/mu.\(suffix)" : glyph-proc
|
||||
local df : DivFrame 1
|
||||
include : MarkSet.p
|
||||
include : Base df XH
|
||||
include : dispiro
|
||||
widths.rhs
|
||||
flat SB Descender [heading Upward]
|
||||
curl SB (Descender / 2) [heading Upward]
|
||||
straight.up.end SB SmallArchDepthB [widths.heading 0 [AdviceStroke 4] Upward]
|
||||
include : Slabs df XH
|
||||
|
||||
create-glyph "uSideways.\(suffix)" : glyph-proc
|
||||
local df : DivFrame (XH / Width) 2 (XH * 0.1 / SB)
|
||||
include : df.markSet.e
|
||||
|
@ -216,6 +227,10 @@ glyph-block Letter-Latin-U : begin
|
|||
select-variant 'u' 'u'
|
||||
link-reduced-variant 'u/sansSerif' 'u' MathSansSerif
|
||||
select-variant 'u/uRTailBase' (shapeFrom -- 'u')
|
||||
|
||||
select-variant 'grek/mu' 0x3BC
|
||||
select-variant 'micro' 0xB5 (shapeFrom -- 'grek/mu')
|
||||
|
||||
select-variant 'cyrl/i.italic' (shapeFrom -- 'u')
|
||||
select-variant 'cyrl/i.italic.reduced' (shapeFrom -- 'u')
|
||||
alias 'cyrl/i.BGR' null 'cyrl/i.italic'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue