Switched interpolation of stroke width into monotonic cubic interpolation
This commit is contained in:
parent
e968d48ce2
commit
0126d044e6
6 changed files with 334 additions and 653 deletions
13
font.js
13
font.js
|
@ -117,14 +117,13 @@
|
|||
r13_xn$assignunicode$7Hrq('A');
|
||||
r13_TURN = r0_XH * 0.1;
|
||||
r13_leftbar = new r0_Stroke();
|
||||
r13_leftbar['start-from'](r0_SB, 0)['line-to'](r0_SB, r13_TURN)['curve-to'](r0_SB, r13_TURN + 0.27 * (r0_CAP - r13_TURN), r0_MIDDLE - r0_STROKE / 2, r0_CAP);
|
||||
r13_leftbar['start-from'](r0_SB, 0)['set-width'](0, r0_STROKE)['line-to'](r0_SB, r13_TURN)['curve-to'](r0_SB, r13_TURN + 0.27 * (r0_CAP - r13_TURN), r0_MIDDLE - r0_STROKE / 2, r0_CAP)['set-width'](0, r0_STROKE * 0.8);
|
||||
r13_rightbar = new r0_Stroke();
|
||||
r13_rightbar['start-from'](r0_RIGHTSB, 0)['line-to'](r0_RIGHTSB, r13_TURN)['curve-to'](r0_RIGHTSB, r13_TURN + 0.27 * (r0_CAP - r13_TURN), r0_MIDDLE + r0_STROKE / 2, r0_CAP);
|
||||
r13_hbar = new r0_Stroke();
|
||||
r13_hbar['start-from'](r0_SB + r0_STROKE, r0_XH / 2)['line-to'](r0_RIGHTSB - r0_STROKE, r0_XH / 2);
|
||||
r13_xn$putshapes$9Jrj(r13_leftbar['form-stroke'](0, r0_STROKE));
|
||||
r13_xn$putshapes$9Jrj(r13_hbar['form-stroke'](0, r0_STROKE));
|
||||
r13_xn$putshapes$9Jrj(r13_rightbar['form-stroke'](r0_STROKE, 0));
|
||||
r13_rightbar['start-from'](r0_RIGHTSB, 0)['set-width'](r0_STROKE, 0)['line-to'](r0_RIGHTSB, r13_TURN)['curve-to'](r0_RIGHTSB, r13_TURN + 0.27 * (r0_CAP - r13_TURN), r0_MIDDLE + r0_STROKE / 2, r0_CAP)['set-width'](r0_STROKE * 0.8, 0);
|
||||
r13_hbar = new r0_Stroke()['start-from'](r0_SB + r0_STROKE, r0_XH / 2)['set-width'](0, r0_STROKE)['line-to'](r0_RIGHTSB - r0_STROKE, r0_XH / 2);
|
||||
r13_xn$putshapes$9Jrj(r13_leftbar['form-stroke']());
|
||||
r13_xn$putshapes$9Jrj(r13_hbar['form-stroke']());
|
||||
r13_xn$putshapes$9Jrj(r13_rightbar['form-stroke']());
|
||||
r13_xn$startfrom$1aao(r0_MIDDLE - r0_STROKE / 2, r0_CAP);
|
||||
r13_xn$lineto$5sIl(r0_MIDDLE + r0_STROKE / 2, r0_CAP);
|
||||
r13_xn$lineto$5sIl(r0_MIDDLE, r0_CAP - r0_STROKE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue