Skip to content

Commit

Permalink
Unify Ҙ/ҙ/Ҫ/ҫ/Ҿ/ҿ with Ц/ц/Щ/щ/Џ/џ. (#2640)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcwilliams403 authored Jan 9, 2025
1 parent 065f242 commit 8b8c7f1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions packages/font-glyphs/src/letter/cyrillic/dzhe.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ glyph-block Letter-Cyrillic-Dzhe : begin
include : VBar.l SB 0 top
include : HBar.b SB RightSB 0
include : VBar.r RightSB 0 top
local desc : QuarterStroke - LongVJut
include : VBar.m Middle desc Stroke
local desc : (-LongVJut) + QuarterStroke
include : VBar.m Middle desc Stroke VJutStroke
include : ExtendBelowBaseAnchors desc
if SLAB : let [sf : SerifFrame.fromDf [DivFrame 1] top 0] : begin
include : composite-proc sf.lt.full sf.rt.full sf.lb.outer sf.rb.outer
Expand Down
4 changes: 2 additions & 2 deletions packages/font-glyphs/src/letter/greek/lower-epsilon.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ glyph-block Letter-Greek-Lower-Epsilon : begin

create-glyph "cyrl/Dhe.\(suffix)" : glyph-proc
include [refer-glyph "cyrl/Ze.\(suffix)"] AS_BASE ALSO_METRICS
local desc : (-LongVJut) + HalfStroke
local desc : (-LongVJut) + QuarterStroke
include : ExtendBelowBaseAnchors desc
include : let [zeNoO : CyrZe slabTop slabBot CAP 0 (hook -- Hook) (xo -- 0) (yo -- 0)]
difference
Expand All @@ -257,7 +257,7 @@ glyph-block Letter-Greek-Lower-Epsilon : begin

create-glyph "cyrl/dhe.\(suffix)" : glyph-proc
include [refer-glyph "cyrl/ze.\(suffix)"] AS_BASE ALSO_METRICS
local desc : (-LongVJut) + HalfStroke
local desc : (-LongVJut) + QuarterStroke
include : ExtendBelowBaseAnchors desc
include : let [zeNoO : CyrZe slabTop slabBot XH 0 (hook -- SHook) (xo -- 0) (yo -- 0)]
difference
Expand Down
6 changes: 3 additions & 3 deletions packages/font-glyphs/src/letter/latin/c.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ glyph-block Letter-Latin-C : begin
create-glyph "cyrl/esWide.\(suffix)" : glyph-proc
local df : include : DivFrame para.diversityT 3
include : df.markSet.e
local desc : (-LongVJut) + HalfStroke
local desc : (-LongVJut) + QuarterStroke
include : ExtendBelowBaseAnchors desc
local lf : CLetterForm df sty styBot XH desc
ada -- [df.archDepthA SmallArchDepth Stroke]
Expand Down Expand Up @@ -356,7 +356,7 @@ glyph-block Letter-Latin-C : begin

derive-glyphs 'cyrl/The' 0x4AA "cyrl/Es" : function [src gr] : glyph-proc
include [refer-glyph src] AS_BASE ALSO_METRICS
local desc : (-LongVJut) + HalfStroke
local desc : (-LongVJut) + QuarterStroke
include : ExtendBelowBaseAnchors desc
include : difference
VBar.m [arch.adjust-x.bot Middle] desc (Stroke + O) VJutStroke
Expand All @@ -373,7 +373,7 @@ glyph-block Letter-Latin-C : begin

derive-glyphs 'cyrl/the' 0x4AB "cyrl/es" : function [src gr] : glyph-proc
include [refer-glyph src] AS_BASE ALSO_METRICS
local desc : (-LongVJut) + HalfStroke
local desc : (-LongVJut) + QuarterStroke
include : ExtendBelowBaseAnchors desc
include : difference
VBar.m [arch.adjust-x.bot Middle] desc (Stroke + O) VJutStroke
Expand Down
22 changes: 11 additions & 11 deletions packages/font-glyphs/src/letter/latin/k.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ glyph-block Letter-Latin-K : begin
local kshRight : right + [KBalanceRight true straightBar]
local serifLengthAdj : Ok + [HSwToV stroke]
return : shape.rSideJut
x -- (kshRight - serifLengthAdj)
y -- 0
x -- (kshRight - serifLengthAdj)
y -- 0
jut -- (Jut + serifLengthAdj)

define [KSlabs mode top left right stroke straightBar] : glyph-proc
Expand All @@ -46,8 +46,8 @@ glyph-block Letter-Latin-K : begin
local kshRightBot : right + [KBalanceRight slabLegs true]
local kshRightTop : if fHookTop (kshRightBot - HookX * 0.5 + [HSwToV : 0.5 * stroke]) kshRightBot

local attach (top * 0.42 - stroke)
local attach2 (top * 0.72 + stroke)
local attach : top * 0.42 - stroke
local attach2 : top * 0.72 + stroke

set-base-anchor 'trailing' (kshRightBot - Ok) 0

Expand Down Expand Up @@ -273,10 +273,10 @@ glyph-block Letter-Latin-K : begin
return : sink
g4.up.start (dim.arcStartX + offset) dim.arcStartY [widths.rhs.heading dim.arcFine Upward]
arch.rhs (top - offset)
sw -- dim.arcStroke
sw -- dim.arcStroke
swBefore -- dim.arcFine
swAfter -- dim.arcStroke
p -- dim.pArcTopX
swAfter -- dim.arcStroke
p -- dim.pArcTopX

g4.down.mid (dim.arcRightX - offset) (dim.arcRightY - 0.5 * dim.arcRightSlope * [HSwToV dim.arcStroke])
heading {.y dim.arcRightSlope .x HVContrast}
Expand Down Expand Up @@ -310,7 +310,7 @@ glyph-block Letter-Latin-K : begin

define swDiagTail : AdviceStroke 2 (1 - (dim.kshLeft - SB) / Width)
define swDiagTailAdj : swDiagTail / [mix 1 HVContrast 0.375]
define xDTGap : 0.10 * (RightSB - SB) - (0.125 + [clamp 0 0.375 (0.5 * (Width / UPM * 2 - 1))]) * swDiagTail
define xDTGap : 0.10 * (RightSB - SB) - (0.125 + [clamp 0 0.375 : 0.5 * (Width / UPM * 2 - 1)]) * swDiagTail
define xDTStart : dim.arcTerminalX + [HSwToV swDiagTail] + xDTGap
define xDTEnd : dim.kshRight - 0.8 * Hook - [HSwToV : 0.25 * swDiagTail] + xDTGap * 0.625
define tailAngle : Math.min 85 (50 + [Math.atan2 (0.75 * swDiagTail) Hook] / Math.PI * 180)
Expand Down Expand Up @@ -404,7 +404,7 @@ glyph-block Letter-Latin-K : begin
create-glyph "KDescender.\(suffix)" : glyph-proc
include : MarkSet.capital
include : KBaseShape Stroke CAP CyrDescender
include : ExtendBelowBaseAnchors ((-LongVJut) + HalfStroke)
include : ExtendBelowBaseAnchors ((-LongVJut) + QuarterStroke)

create-glyph "KStroke.\(suffix)" : glyph-proc
include [refer-glyph "K.\(suffix)"] AS_BASE ALSO_METRICS
Expand Down Expand Up @@ -432,7 +432,7 @@ glyph-block Letter-Latin-K : begin
create-glyph "smcpKDescender.\(suffix)" : glyph-proc
include : MarkSet.e
include : KBaseShape Stroke XH CyrDescender
include : ExtendBelowBaseAnchors ((-LongVJut) + HalfStroke)
include : ExtendBelowBaseAnchors ((-LongVJut) + QuarterStroke)

create-glyph "smcpKVBar.\(suffix)" : glyph-proc
include : MarkSet.e
Expand Down Expand Up @@ -508,7 +508,7 @@ glyph-block Letter-Latin-K : begin
create-glyph "kDescender.\(suffix)" : glyph-proc
include : MarkSet.b
include : kBaseShape CyrDescender
include : ExtendBelowBaseAnchors (-LongVJut + HalfStroke)
include : ExtendBelowBaseAnchors ((-LongVJut) + QuarterStroke)

create-glyph "kPalatalHook.\(suffix)" : glyph-proc
include : MarkSet.b
Expand Down
4 changes: 2 additions & 2 deletions packages/font-glyphs/src/letter/latin/lower-e.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ glyph-block Letter-Latin-Lower-E : begin
tailSlab -- tailSlab
define shift : Width * (df.div - divSub)
if fDesc : begin
local desc : (-LongVJut) + HalfStroke
local desc : (-LongVJut) + QuarterStroke
include : ExtendBelowBaseAnchors desc
include : difference
VBar.m subDf.middle desc (stroke + O) [AdviceStroke 3.5 df.div]
VBar.m subDf.middle desc (stroke + O) (VJutStroke * subDf.mvs / Stroke)
OShapeOutline.NoOvershoot top 0 subDf.leftSB subDf.rightSB stroke
include : Translate shift 0

Expand Down

0 comments on commit 8b8c7f1

Please sign in to comment.