Optimize arch depth of Greek Lower Psi (ψ). (#2797)

This commit is contained in:
John McWilliams 2025-06-05 21:11:03 -04:00 committed by GitHub
parent df20c354fc
commit ab2cfd29dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View file

@ -1,5 +1,7 @@
* Refine shape of the following characters:
- LATIN SMALL LETTER RAMS HORN (`U+0264`).
- GREEK SMALL LETTER PSI (`U+03C8`).
- CYRILLIC SMALL LETTER PSI (`U+0471`).
- LATIN LETTER AIN (`U+1D25`).
- MODIFIER LETTER SMALL AIN (`U+1D5C`).
- TURKISH LIRA SIGN (`U+20BA`).

View file

@ -10,8 +10,8 @@ glyph-block Letter-Greek-Psi : begin
glyph-block-import CommonShapes
glyph-block-import Common-Derivatives
define [PsiBaseShape df y1 y2 y3 y4 doBotSerif doTopSerif doSideSerifL doSideSerifR] : glyph-proc
include : UShape df y3 y2 df.mvs (ArchDepthA * df.adws) (ArchDepthB * df.adws)
define [PsiShape df y1 y2 y3 y4 ada adb doBotSerif doTopSerif doSideSerifL doSideSerifR] : glyph-proc
include : UShape df y3 y2 df.mvs ada adb
include : VBar.m df.middle y2 y4 df.mvs
include : VBar.m df.middle y1 (y2 + HalfStroke)
@ -23,14 +23,14 @@ glyph-block Letter-Greek-Psi : begin
create-glyph 'grek/Psi' 0x3A8 : glyph-proc
local df : include : DivFrame para.advanceScaleM 3
include : df.markSet.capital
include : PsiBaseShape df 0 (CAP * 0.3) CAP CAP SLAB (SLAB && (df.width > para.refJut * 7)) SLAB SLAB
include : PsiShape df 0 (CAP * 0.3) CAP CAP df.archDepthA df.archDepthB SLAB (SLAB && (df.width > para.refJut * 7)) SLAB SLAB
alias 'cyrl/Psi' 0x470 'grek/Psi'
create-glyph 'smcpPsi' 0x1D2A : glyph-proc
local df : include : DivFrame para.advanceScaleT 3
include : df.markSet.e
include : PsiBaseShape df 0 (XH * 0.3) XH XH SLAB false SLAB SLAB
include : PsiShape df 0 (XH * 0.3) XH XH df.archDepthA df.archDepthB SLAB false SLAB SLAB
define GrekLowerPsiConfig : SuffixCfg.weave
object # top
@ -44,7 +44,7 @@ glyph-block Letter-Greek-Psi : begin
create-glyph "grek/psi.\(suffix)" : glyph-proc
local df : include : DivFrame para.advanceScaleM 3
include : df.markSet.[if (top > XH) 'bp' 'p']
include : PsiBaseShape df Descender 0 XH top false false slab false
include : PsiShape df Descender 0 XH top df.smallArchDepthA df.smallArchDepthB false false slab false
select-variant 'grek/psi' 0x3C8
link-reduced-variant 'grek/psi/sansSerif' 'grek/psi' MathSansSerif