From c538524fbd7c3f938d215b272ab1376ff7cd5e7f Mon Sep 17 00:00:00 2001 From: be5invis Date: Sat, 12 Dec 2015 03:37:44 +0800 Subject: [PATCH] Enwiden slabs. --- parameters.toml | 4 +--- support/glyph.patel | 7 ++++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/parameters.toml b/parameters.toml index 463a019..3b3130d 100644 --- a/parameters.toml +++ b/parameters.toml @@ -135,10 +135,8 @@ style = " Italic" slab = true onebalance = 10 overshootx = -16 - [slab.multiplies] -sb = 1.167 - +sb = 1.1 [slab.adds] family = " Slab" diff --git a/support/glyph.patel b/support/glyph.patel index e3cc493..925e918 100644 --- a/support/glyph.patel +++ b/support/glyph.patel @@ -45,13 +45,13 @@ define [Glyph.prototype.start-from x y] : begin set contour.tag this.defaultTag this.contours.push contour return this - Glyph.prototype.moveTo = Glyph.prototype.start-from + define [Glyph.prototype.line-to x y] : begin this.contours.((this.contours.length - 1)).push [Point.transformed this.gizmo x y true] return this - Glyph.prototype.lineTo = Glyph.prototype.line-to + define [Glyph.prototype.curve-control x y] : begin this.contours.((this.contours.length - 1)).push [tp this.gizmo [new Point x y false]] return this @@ -71,12 +71,13 @@ define [Glyph.prototype.cubic-to x1 y1 x2 y2 x y] : begin Point.transformed this.gizmo x2 y2 false true Point.transformed this.gizmo x y true return this - Glyph.prototype.cubicTo = Glyph.prototype.cubic-to + define [Glyph.prototype.reverse-last] : begin if [this.contours && this.contours.(this.contours.length - 1)] : begin this.contours.(this.contours.length - 1) = [this.contours.(this.contours.length - 1).reverse] return this +Glyph.prototype.reverseLast = Glyph.prototype.reverse-last define [Glyph.prototype.tag-contour tag n] : begin if this.contours : begin