mirror of
https://github.com/multipleof4/stain.otf.git
synced 2026-01-14 00:27:55 +00:00
Refactor: Redraw lowercase g glyph
This commit is contained in:
@@ -11,7 +11,7 @@ export const glyphG = (opentype, adv) =>
|
|||||||
opentype,
|
opentype,
|
||||||
"G",
|
"G",
|
||||||
"G".codePointAt(0),
|
"G".codePointAt(0),
|
||||||
(p) => {
|
p=>{
|
||||||
p.moveTo(350,-10);
|
p.moveTo(350,-10);
|
||||||
p.curveTo(190,-10,80,100,80,280);
|
p.curveTo(190,-10,80,100,80,280);
|
||||||
p.lineTo(80,420);
|
p.lineTo(80,420);
|
||||||
@@ -39,29 +39,36 @@ export const glyphg = (opentype, adv) =>
|
|||||||
opentype,
|
opentype,
|
||||||
"g",
|
"g",
|
||||||
"g".codePointAt(0),
|
"g".codePointAt(0),
|
||||||
(p) => {
|
p=>{
|
||||||
p.moveTo(310, -10);
|
const cx=300,cy=210;
|
||||||
p.curveTo(250, -10, 200, 10, 160, 40);
|
const rO=170,rI=110;
|
||||||
p.lineTo(160, 0);
|
const linkY=-10;
|
||||||
p.lineTo(100, 0);
|
const earX=430,earY=390;
|
||||||
p.lineTo(100, 480);
|
p.moveTo(cx+rO,cy);
|
||||||
p.lineTo(160, 480);
|
p.curveTo(cx+rO,cy+95,cx+95,cy+rO,cx,cy+rO);
|
||||||
p.lineTo(160, 440);
|
p.curveTo(cx-95,cy+rO,cx-rO,cy+95,cx-rO,cy);
|
||||||
p.curveTo(200, 470, 250, 490, 310, 490);
|
p.curveTo(cx-rO,cy-95,cx-95,cy-rO,cx,cy-rO);
|
||||||
p.curveTo(430, 490, 520, 400, 520, 240);
|
p.curveTo(cx+95,cy-rO,cx+rO,cy-95,cx+rO,cy);
|
||||||
p.lineTo(520, 180);
|
p.close();
|
||||||
p.curveTo(520, 20, 430, -70, 310, -70);
|
p.moveTo(cx+rI,cy);
|
||||||
p.curveTo(220, -70, 150, -30, 110, 40);
|
p.curveTo(cx+rI,cy+65,cx+65,cy+rI,cx,cy+rI);
|
||||||
p.lineTo(160, 70);
|
p.curveTo(cx-65,cy+rI,cx-rI,cy+65,cx-rI,cy);
|
||||||
p.curveTo(190, 20, 240, -10, 310, -10);
|
p.curveTo(cx-rI,cy-65,cx-65,cy-rI,cx,cy-rI);
|
||||||
p.curveTo(400, -10, 460, 50, 460, 180);
|
p.curveTo(cx+65,cy-rI,cx+rI,cy-65,cx+rI,cy);
|
||||||
p.lineTo(460, 240);
|
p.close();
|
||||||
p.curveTo(460, 370, 400, 430, 310, 430);
|
p.moveTo(cx-40,linkY);
|
||||||
p.curveTo(220, 430, 160, 370, 160, 240);
|
p.curveTo(cx-120,linkY-70,cx-60,-150,cx+40,-150);
|
||||||
p.curveTo(160, 110, 220, 50, 310, 50);
|
p.curveTo(cx+150,-150,cx+190,-70,cx+140,-10);
|
||||||
|
p.lineTo(cx+90,-40);
|
||||||
|
p.curveTo(cx+120,-80,cx+110,-110,cx+60,-110);
|
||||||
|
p.curveTo(cx+10,-110,cx-10,-70,cx-10,-30);
|
||||||
|
p.close();
|
||||||
|
p.moveTo(earX-40,earY);
|
||||||
|
p.lineTo(earX+40,earY);
|
||||||
|
p.lineTo(earX+30,470);
|
||||||
|
p.lineTo(earX-30,470);
|
||||||
p.close();
|
p.close();
|
||||||
return p;
|
return p;
|
||||||
},
|
},
|
||||||
adv
|
adv
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user