mirror of
https://github.com/multipleof4/stain.otf.git
synced 2026-01-14 08:37:59 +00:00
Fix y: correct stroke closure and descender shape
This commit is contained in:
@@ -1,6 +1,19 @@
|
|||||||
export const glyphY=(o,w)=>new o.Glyph({name:"Y",unicode:89,advanceWidth:w,path:(p=>{
|
export const glyphY=(o,w)=>new o.Glyph({name:"Y",unicode:89,advanceWidth:w,path:(p=>{
|
||||||
p.moveTo(20,700).lineTo(115,700).lineTo(280,350).lineTo(450,700).lineTo(545,700).lineTo(325,255).lineTo(325,0).lineTo(245,0).lineTo(245,255).close(); return p;
|
p.moveTo(20,700).lineTo(115,700).lineTo(280,350).lineTo(450,700).lineTo(545,700).lineTo(325,255).lineTo(325,0).lineTo(245,0).lineTo(245,255).close(); return p;
|
||||||
})(new o.Path())});
|
})(new o.Path())});
|
||||||
|
|
||||||
export const glypthy=(o,w)=>new o.Glyph({name:"y",unicode:121,advanceWidth:w,path:(p=>{
|
export const glypthy=(o,w)=>new o.Glyph({name:"y",unicode:121,advanceWidth:w,path:(p=>{
|
||||||
p.moveTo(25,500).lineTo(105,500).lineTo(235,180).lineTo(365,500).lineTo(455,500).lineTo(260,0).lineTo(190,-160).curveTo(165,-210,130,-215,105,-215).curveTo(80,-215,60,-210,30,-190).lineTo(50,-120).curveTo(70,-135,95,-140,110,-130).curveTo(125,-120,140,-85,145,-70).close(); return p;
|
// Left Leg (Top->Bot) merging into tail logic
|
||||||
|
p.moveTo(15,500).lineTo(95,500).lineTo(230,180) // Crotch inner
|
||||||
|
.lineTo(385,500).lineTo(465,500) // Right top
|
||||||
|
// Right Stroke / Tail Outer
|
||||||
|
.lineTo(270,0).lineTo(190,-200) // Descender
|
||||||
|
.curveTo(140,-270,50,-240,20,-160) // Tail Hook
|
||||||
|
.lineTo(70,-120).curveTo(90,-160,130,-175,160,-150) // Tail Inner
|
||||||
|
.lineTo(200,-50) // Trace up tail inner
|
||||||
|
.lineTo(205,-50) // Align with Left Outer
|
||||||
|
.lineTo(210,0) // Intersection
|
||||||
|
.lineTo(15,500).close();
|
||||||
|
return p;
|
||||||
})(new o.Path())});
|
})(new o.Path())});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user