From 4ba5284868df9c1bd3af86d83d171ad381427b91 Mon Sep 17 00:00:00 2001 From: be5invis Date: Thu, 2 Sep 2021 20:50:16 -0700 Subject: [PATCH] =?UTF-8?q?Add=20tailless=20variants=20for=20Greek=20small?= =?UTF-8?q?=20Mu=20(`=CE=BC`)=20(#1211).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changes/{10.1.2.md => 10.2.0.md} | 3 ++- font-src/glyphs/letter/greek/lower-mu.ptl | 27 ++++++++++++++--------- params/variants.toml | 21 +++++++++++++++++- snapshot-src/index.js | 2 +- 4 files changed, 40 insertions(+), 13 deletions(-) rename changes/{10.1.2.md => 10.2.0.md} (68%) diff --git a/changes/10.1.2.md b/changes/10.2.0.md similarity index 68% rename from changes/10.1.2.md rename to changes/10.2.0.md index 9f6d4159c..ff7641182 100644 --- a/changes/10.1.2.md +++ b/changes/10.2.0.md @@ -1,2 +1,3 @@ * Refine the size and placements of diacritics, to avoid stacking marks to collide (#1204). - * Refine the alignment of Number Sign (`#`) to align with numbers (#1210). \ No newline at end of file + * Refine the alignment of Number Sign (`#`) to align with numbers (#1210). + * Add tailless variants for Greek small Mu (`μ`) (#1211). \ No newline at end of file diff --git a/font-src/glyphs/letter/greek/lower-mu.ptl b/font-src/glyphs/letter/greek/lower-mu.ptl index 4e7ea3ab5..f816b7b18 100644 --- a/font-src/glyphs/letter/greek/lower-mu.ptl +++ b/font-src/glyphs/letter/greek/lower-mu.ptl @@ -10,14 +10,21 @@ glyph-block Letter-Greek-Lower-Mu : begin glyph-block-import Common-Derivatives glyph-block-import Letter-Latin-U - create-glyph 'grek/mu' 0x3BC : glyph-proc - include : MarkSet.p - include : refer-glyph 'u.seriflessTailed' - include : dispiro - widths.rhs - flat SB Descender [heading Upward] - curl SB (Descender / 2) [heading Upward] - straight.up.end SB SmallSmoothB [widths.heading 0 [AdviceStroke 4] Upward] - if SLAB : begin - include : LeftwardTopSerif SB XH SideJut + define SmallMuConfig : object + tailless { 'u.toothed' } + tailed { 'u.seriflessTailed' } + + foreach { suffix { uPartName } } [Object.entries SmallMuConfig] : do + create-glyph "grek/mu.\(suffix)" : glyph-proc + include : MarkSet.p + include : refer-glyph uPartName + include : dispiro + widths.rhs + flat SB Descender [heading Upward] + curl SB (Descender / 2) [heading Upward] + straight.up.end SB SmallSmoothB [widths.heading 0 [AdviceStroke 4] Upward] + if SLAB : begin + include : LeftwardTopSerif SB XH SideJut + + select-variant 'grek/mu' 0x3BC alias 'micro' 0xB5 'grek/mu' diff --git a/params/variants.toml b/params/variants.toml index 68a4bd7d6..f248134b0 100644 --- a/params/variants.toml +++ b/params/variants.toml @@ -4694,6 +4694,23 @@ selector."grek/lambda" = "curlyTurn" +[prime.lower-mu] +sampler = "μ" +samplerExplain = "Greek small Mu" +tag = "VXAC" + +[prime.lower-mu.variants.tailless] +rank = 1 +description = "Tailless Greek small Mu (`μ`)" +selector."grek/mu" = "tailless" + +[prime.lower-mu.variants.tailed] +rank = 2 +description = "Tailed Greek small Mu (`μ`)" +selector."grek/mu" = "tailed" + + + [prime.lower-xi] sampler = "ξ" samplerExplain = "Greek lower Xi" @@ -6296,10 +6313,11 @@ turn-v = "straight" latn-phi = "serifless" lower-alpha = "crossing" lower-delta = "rounded" -lower-xi = "flat-top" capital-gamma = "serifless" +lower-mu = "tailed" lower-iota = "serifed-flat-tailed" lower-lambda = "straight" +lower-xi = "flat-top" cyrl-capital-ze = "serifless" cyrl-ze = "serifless" cyrl-capital-ka = "symmetric-connected-serifless" @@ -6708,6 +6726,7 @@ y = "straight-turn" eszet = "longs-s-lig" lower-iota = "tailed-serifed" lower-lambda = "straight-turn" +lower-mu = "tailless" cyrl-capital-ka = "symmetric-connected-serifless" cyrl-ka = "symmetric-connected-serifless" cyrl-capital-u = "straight-turn" diff --git a/snapshot-src/index.js b/snapshot-src/index.js index 9c863f0fb..538566529 100644 --- a/snapshot-src/index.js +++ b/snapshot-src/index.js @@ -29,7 +29,7 @@ const captureCallbacks = { const ssStrings = [ ["ABC.DEF.GHI.JKL.MNO.PQRS.TUV.WXYZ", "abc.def.ghi.jkl.mno.pqrs.tuv.wxyz"], - ["¢ ſ ß ΓΛΔ αδιλξ КУЗЯ эльф язычник", "float il1[]={1-2/3.4,5+6=7/8%90};"], + ["¢ ſß ΓΛΔ αδιλμξ КУЗЯ эльф язычник", "float il1[]={1-2/3.4,5+6=7/8%90};"], ["1234567890 ,._-+= >< ¯-¬_ >~–÷+×<", "{}[]()<>`+-=$*/#_%^@\\&|~?'\" !,.;:"], ["!iIlL17|¦ coO08BbDQ $5SZ2zsz 96G&", [..."dbqp E3 g9q CGQ vvw VVW /V ", "<=", " ", ">="]] ];