Optimized shape of /eszet.

This commit is contained in:
Belleve Invis 2015-07-25 04:14:04 +08:00
parent 7cf8280c83
commit f5f41d784b
2 changed files with 19 additions and 13 deletions

View File

@ -3425,7 +3425,7 @@
return void 0;
});
r4_xn$createglyph$7Hrq('eszet.upright', function _r4_t154() {
var r336_currentGlyph, r336_xn$setwidth$9Jrj, r336_xn$assignunicode$7Hrq, r336_xn$startfrom$1aao, r336_xn$lineto$5sIl, r336_xn$curveto$1aao, r336_xn$cubicto$1aao, r336_xn$putshapes$9Jrj, r336_xn$reverselast$3qIs, r336_include, r336_xn$createstroke$7Hrq, r336_xn$setanchor$9Jrj, r336_yTopTurn, r336_yMiddleTurn, r336_yBottomTurn, r336_xTopTurn, r336_xMiddleTurn, r336_xBottomTurn, r336_xBottomFinal, _r336_t0, _r336_t1, _r336_t2;
var r336_currentGlyph, r336_xn$setwidth$9Jrj, r336_xn$assignunicode$7Hrq, r336_xn$startfrom$1aao, r336_xn$lineto$5sIl, r336_xn$curveto$1aao, r336_xn$cubicto$1aao, r336_xn$putshapes$9Jrj, r336_xn$reverselast$3qIs, r336_include, r336_xn$createstroke$7Hrq, r336_xn$setanchor$9Jrj, r336_yTopTurn, r336_yBottomTurn, r336_xTopTurn, r336_xMiddleTurn, r336_xBottomTurn, r336_xBottomFinal, _r336_t0, _r336_t1, _r336_t2;
_r336_t0 = this;
r336_currentGlyph = _r336_t0;
r336_xn$setwidth$9Jrj = _r336_t0['set-width']['bind'](_r336_t0);
@ -3447,14 +3447,14 @@
_r336_t0['set-width'](r4_WIDTH);
r336_xn$setwidth$9Jrj(r4_WIDTH);
r336_include(r4_bMarks);
r336_yTopTurn = r4_CAP * 0.78;
r336_yMiddleTurn = r4_CAP * 0.57 + r4_HALFSTROKE;
r336_yBottomTurn = r4_CAP * 0.52 - r4_HALFSTROKE;
r336_yTopTurn = r4_CAP * 0.62 + r4_HALFSTROKE;
r336_yBottomTurn = r4_CAP * 0.45;
r336_xTopTurn = r0_mix(r4_SB + r4_STROKE, r4_RIGHTSB, 0.75);
r336_xMiddleTurn = r0_mix(r4_SB + r4_STROKE, r4_RIGHTSB, 0.375);
r336_xMiddleTurn = r0_mix(r4_SB + r4_STROKE, r4_RIGHTSB, 0.15) + r4_HALFSTROKE;
r336_xBottomTurn = r0_mix(r4_SB + r4_STROKE, r4_RIGHTSB, 0.9);
r336_xBottomFinal = r0_mix(r4_SB + r4_STROKE, r4_RIGHTSB, 0.4);
r336_include(r336_xn$createstroke$7Hrq()['start-from'](r4_SB + r4_HALFSTROKE, 0)['set-width'](r4_HALFSTROKE, r4_HALFSTROKE)['heads-to'](r4_UPWARD)['line-to'](r4_SB + r4_HALFSTROKE, r4_CAP - r4_SMOOTHA - r4_HALFSTROKE)['arc-vh-to'](r0_mix(r4_SB + r4_HALFSTROKE, r336_xTopTurn, 0.5), r4_CAP - r4_O - r4_HALFSTROKE)['heads-to'](r4_RIGHTWARD)['arc-hv-to'](r336_xTopTurn, r0_mix(r336_yMiddleTurn - r4_HALFSTROKE, r4_CAP, 0.5))['arc-vh-to'](r0_mix(r336_xMiddleTurn, r336_xTopTurn, 0.5), r336_yMiddleTurn)['arc-hv-to'](r336_xMiddleTurn, r0_mix(r336_yMiddleTurn, r336_yBottomTurn, 0.5))['arc-vh-to'](r0_mix(r336_xMiddleTurn, r336_xBottomTurn, 0.5), r336_yBottomTurn)['arc-hv-to'](r336_xBottomTurn, r0_mix(r336_yBottomTurn + r4_HALFSTROKE, 0, 0.5))['arc-vh-to'](r336_xBottomFinal, r4_HALFSTROKE)['line-to'](r4_SB + r4_STROKE * 1.5, r4_HALFSTROKE)['heads-to'](r4_LEFTWARD));
r336_include(r336_xn$createstroke$7Hrq()['start-from'](r4_SB + r4_HALFSTROKE, 0)['set-width'](r4_HALFSTROKE, r4_HALFSTROKE)['heads-to'](r4_UPWARD)['line-to'](r4_SB + r4_HALFSTROKE, r4_CAP - r4_SMOOTHA - r4_HALFSTROKE)['arc-vh-to'](r0_mix(r4_SB + r4_HALFSTROKE, r336_xTopTurn, 0.5), r4_CAP - r4_O - r4_HALFSTROKE)['heads-to'](r4_RIGHTWARD)['arc-hv-to'](r336_xTopTurn, r336_yTopTurn + r4_HALFSTROKE)['heads-to'](r4_DOWNWARD)['line-to'](r336_xTopTurn, r336_yTopTurn - r4_HALFSTROKE)['heads-to'](r4_DOWNWARD));
r336_include(r336_xn$createstroke$7Hrq()['start-from'](r336_xTopTurn + r4_HALFSTROKE, r336_yTopTurn)['heads-to'](r4_LEFTWARD)['set-width'](r4_HALFSTROKE, r4_HALFSTROKE)['line-to'](r336_xMiddleTurn + (r336_yTopTurn - r336_yBottomTurn) / 2, r336_yTopTurn)['arc-hv-to'](r336_xMiddleTurn, r0_mix(r336_yTopTurn, r336_yBottomTurn, 0.5))['arc-vh-to'](r0_mix(r336_xMiddleTurn, r336_xBottomTurn, 0.5), r336_yBottomTurn)['arc-hv-to'](r336_xBottomTurn, r0_mix(r336_yBottomTurn + r4_HALFSTROKE, 0, 0.5))['arc-vh-to'](r336_xBottomFinal, r4_HALFSTROKE)['line-to'](r4_SB + r4_STROKE * 1.5, r4_HALFSTROKE)['heads-to'](r4_LEFTWARD));
return void 0;
});
r4_xn$createglyph$7Hrq('eszet.italic', function _r4_t155() {

View File

@ -270,12 +270,11 @@ create-glyph 'eszet.upright' : glyph-construction {
set-width WIDTH
include bMarks
local yTopTurn [CAP * 0.78]
local yMiddleTurn [CAP * 0.57 + HALFSTROKE]
local yBottomTurn [CAP * 0.52 - HALFSTROKE]
local yTopTurn [CAP * 0.62 + HALFSTROKE]
local yBottomTurn [CAP * 0.45]
local xTopTurn [mix [SB + STROKE] RIGHTSB 0.75]
local xMiddleTurn [mix [SB + STROKE] RIGHTSB 0.375]
local xMiddleTurn : [mix [SB + STROKE] RIGHTSB 0.15] + HALFSTROKE
local xBottomTurn [mix [SB + STROKE] RIGHTSB 0.9]
local xBottomFinal [mix [SB + STROKE] RIGHTSB 0.4]
@ -286,9 +285,16 @@ create-glyph 'eszet.upright' : glyph-construction {
:.line-to [SB + HALFSTROKE] [CAP - SMOOTHA - HALFSTROKE]
:.arc-vh-to [mix [SB + HALFSTROKE] xTopTurn 0.5] [CAP - O - HALFSTROKE]
:.heads-to RIGHTWARD
:.arc-hv-to xTopTurn [mix [yMiddleTurn - HALFSTROKE] CAP 0.5]
:.arc-vh-to [mix xMiddleTurn xTopTurn 0.5] yMiddleTurn
:.arc-hv-to xMiddleTurn [mix yMiddleTurn yBottomTurn 0.5]
:.arc-hv-to xTopTurn [yTopTurn + HALFSTROKE]
:.heads-to DOWNWARD
:.line-to xTopTurn [yTopTurn - HALFSTROKE]
:.heads-to DOWNWARD
include : create-stroke
:.start-from [xTopTurn + HALFSTROKE] yTopTurn
:.heads-to LEFTWARD
:.set-width HALFSTROKE HALFSTROKE
:.line-to [xMiddleTurn + [yTopTurn - yBottomTurn] / 2] yTopTurn
:.arc-hv-to xMiddleTurn [mix yTopTurn yBottomTurn 0.5]
:.arc-vh-to [mix xMiddleTurn xBottomTurn 0.5] yBottomTurn
:.arc-hv-to xBottomTurn [mix [yBottomTurn + HALFSTROKE] 0 0.5]
:.arc-vh-to xBottomFinal HALFSTROKE