From f6e81fc45bad27876718c67677a0630f7ae07ca5 Mon Sep 17 00:00:00 2001 From: John McWilliams <37010132+jmcwilliams403@users.noreply.github.com> Date: Tue, 23 Jan 2024 20:53:41 -0500 Subject: [PATCH] Make `cyrl/ue` and `latn/gamma` respond to italics (#2180) --- changes/28.0.7.md | 1 + packages/font-glyphs/src/letter/latin-ext/rams-horn.ptl | 2 +- packages/font-glyphs/src/letter/latin/upper-y.ptl | 6 ++++++ params/variants.toml | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/changes/28.0.7.md b/changes/28.0.7.md index 043b53f8d..ac3c6443d 100644 --- a/changes/28.0.7.md +++ b/changes/28.0.7.md @@ -2,3 +2,4 @@ * Add IPA localization forms for Greek Lower Beta (`β`) and Chi (`χ`). * Add APLF variants for `U+25F0`, `U+25F3`, and `U+25F4`. * Fix serif form for Cyrillic Lower Tall / Iotified Yat (#2178). +* Make top serifs of Cyrillic Lower Straight U (`ү`, `ұ`) and Latin Lower Gamma (`ɣ`) respond to italics. diff --git a/packages/font-glyphs/src/letter/latin-ext/rams-horn.ptl b/packages/font-glyphs/src/letter/latin-ext/rams-horn.ptl index 90ea3885e..85c176d2b 100644 --- a/packages/font-glyphs/src/letter/latin-ext/rams-horn.ptl +++ b/packages/font-glyphs/src/letter/latin-ext/rams-horn.ptl @@ -31,7 +31,7 @@ glyph-block Letter-Latin-Rams-Horn : begin include : LatinGammaShape Descender XH if SLAB : begin local sf : SerifFrame.fromDf [DivFrame 1] XH Descender - include : composite-proc sf.lt.full sf.rt.full + include : if para.isItalic sf.lt.outer [composite-proc sf.lt.full sf.rt.full] create-glyph 'latn/Gamma' 0x194 : glyph-proc include : MarkSet.capDesc diff --git a/packages/font-glyphs/src/letter/latin/upper-y.ptl b/packages/font-glyphs/src/letter/latin/upper-y.ptl index 549dd6eab..23ec19383 100644 --- a/packages/font-glyphs/src/letter/latin/upper-y.ptl +++ b/packages/font-glyphs/src/letter/latin/upper-y.ptl @@ -20,6 +20,7 @@ glyph-block Letter-Latin-Upper-Y : begin define SLAB-ALL 1 define SLAB-BASE 2 define SLAB-MOTION 3 + define SLAB-CYRL 4 define [YCrossPos top bot] : mix bot top 0.4 @@ -31,6 +32,9 @@ glyph-block Letter-Latin-Upper-Y : begin include : HSerif.mb Middle bot MidJutSide [Just SLAB-MOTION] : include sf.lt.outer [Just SLAB-BASE] : include : HSerif.mb Middle bot MidJutSide + [Just SLAB-CYRL] : begin + include : if para.isItalic sf.lt.outer [composite-proc sf.lt.full sf.rt.full] + include : HSerif.mb Middle bot MidJutSide define [YShape bodyType slabType top bot] : glyph-proc local cross : YCrossPos top bot @@ -90,6 +94,8 @@ glyph-block Letter-Latin-Upper-Y : begin curlyMotionSerifed { BODY-CURLY SLAB-MOTION } straightSerifed { BODY-STRAIGHT SLAB-ALL } curlySerifed { BODY-CURLY SLAB-ALL } + straightSmallCyrl { BODY-STRAIGHT SLAB-CYRL } + curlySmallCyrl { BODY-CURLY SLAB-CYRL } foreach { suffix { bodyType slabType } } [Object.entries YConfig] : do create-glyph "Y.\(suffix)" : glyph-proc diff --git a/params/variants.toml b/params/variants.toml index 2c969ba79..ca3216453 100644 --- a/params/variants.toml +++ b/params/variants.toml @@ -1393,7 +1393,7 @@ selectorAffix.Y = "serifed" selectorAffix."Y/sansSerif" = "serifless" selectorAffix.YLoop = "serifed" selectorAffix."grek/UpsilonHookTop" = "BaseSerifed" -selectorAffix."cyrl/ue" = "serifed" +selectorAffix."cyrl/ue" = "smallCyrl"