Skip to content

Commit 3b98e52

Browse files
committed
Merge branch 'dev'
2 parents d202629 + 488f81c commit 3b98e52

327 files changed

Lines changed: 11 additions & 24 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

make/common/quadify.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ function convertContourToArcs(_contour) {
3838
for (let j = 1; j < contour.length; j++) {
3939
const z = contour[j];
4040
if (z.on) {
41-
arcs.push(
42-
TypoGeom.Arcs.Bez3.fromStraightSegment(new TypoGeom.Arcs.StraightSegment(z0, z))
43-
);
41+
arcs.push(new TypoGeom.Arcs.StraightSegment(z0, z));
4442
z0 = z;
4543
} else {
4644
const z1 = z;
@@ -63,10 +61,11 @@ class FairizedShapeSink {
6361
beginShape() {}
6462
endShape() {
6563
if (this.lastContour.length > 2) {
66-
const zFirst = this.lastContour[0],
67-
zLast = this.lastContour[this.lastContour.length - 1];
68-
if (isOccurrent(zFirst, zLast)) this.lastContour.pop();
69-
this.contours.push(this.lastContour);
64+
const c = this.lastContour.reverse();
65+
const zFirst = c[0],
66+
zLast = c[c.length - 1];
67+
if (isOccurrent(zFirst, zLast)) c.pop();
68+
this.contours.push(c);
7069
}
7170
this.lastContour = [];
7271
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sarasa-gothic",
3-
"version": "0.18.3",
3+
"version": "0.18.4",
44
"main": "./run",
55
"scripts": {
66
"build": "verda -f verdafile.js",

0 commit comments

Comments
 (0)