Make cyrl/ue and latn/gamma respond to italics (#2180)

This commit is contained in:
John McWilliams 2024-01-23 20:53:41 -05:00 committed by GitHub
parent cb6a92add3
commit f6e81fc45b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 2 deletions

View file

@ -2,3 +2,4 @@
* Add IPA localization forms for Greek Lower Beta (`β`) and Chi (`χ`). * Add IPA localization forms for Greek Lower Beta (`β`) and Chi (`χ`).
* Add APLF variants for `U+25F0`, `U+25F3`, and `U+25F4`. * Add APLF variants for `U+25F0`, `U+25F3`, and `U+25F4`.
* Fix serif form for Cyrillic Lower Tall / Iotified Yat (#2178). * 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.

View file

@ -31,7 +31,7 @@ glyph-block Letter-Latin-Rams-Horn : begin
include : LatinGammaShape Descender XH include : LatinGammaShape Descender XH
if SLAB : begin if SLAB : begin
local sf : SerifFrame.fromDf [DivFrame 1] XH Descender 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 create-glyph 'latn/Gamma' 0x194 : glyph-proc
include : MarkSet.capDesc include : MarkSet.capDesc

View file

@ -20,6 +20,7 @@ glyph-block Letter-Latin-Upper-Y : begin
define SLAB-ALL 1 define SLAB-ALL 1
define SLAB-BASE 2 define SLAB-BASE 2
define SLAB-MOTION 3 define SLAB-MOTION 3
define SLAB-CYRL 4
define [YCrossPos top bot] : mix bot top 0.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 include : HSerif.mb Middle bot MidJutSide
[Just SLAB-MOTION] : include sf.lt.outer [Just SLAB-MOTION] : include sf.lt.outer
[Just SLAB-BASE] : include : HSerif.mb Middle bot MidJutSide [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 define [YShape bodyType slabType top bot] : glyph-proc
local cross : YCrossPos top bot local cross : YCrossPos top bot
@ -90,6 +94,8 @@ glyph-block Letter-Latin-Upper-Y : begin
curlyMotionSerifed { BODY-CURLY SLAB-MOTION } curlyMotionSerifed { BODY-CURLY SLAB-MOTION }
straightSerifed { BODY-STRAIGHT SLAB-ALL } straightSerifed { BODY-STRAIGHT SLAB-ALL }
curlySerifed { BODY-CURLY 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 foreach { suffix { bodyType slabType } } [Object.entries YConfig] : do
create-glyph "Y.\(suffix)" : glyph-proc create-glyph "Y.\(suffix)" : glyph-proc

View file

@ -1393,7 +1393,7 @@ selectorAffix.Y = "serifed"
selectorAffix."Y/sansSerif" = "serifless" selectorAffix."Y/sansSerif" = "serifless"
selectorAffix.YLoop = "serifed" selectorAffix.YLoop = "serifed"
selectorAffix."grek/UpsilonHookTop" = "BaseSerifed" selectorAffix."grek/UpsilonHookTop" = "BaseSerifed"
selectorAffix."cyrl/ue" = "serifed" selectorAffix."cyrl/ue" = "smallCyrl"