Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Mar 7, 2021
2 parents d202629 + 488f81c commit 3b98e52
Show file tree
Hide file tree
Showing 327 changed files with 11 additions and 24 deletions.
13 changes: 6 additions & 7 deletions make/common/quadify.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ function convertContourToArcs(_contour) {
for (let j = 1; j < contour.length; j++) {
const z = contour[j];
if (z.on) {
arcs.push(
TypoGeom.Arcs.Bez3.fromStraightSegment(new TypoGeom.Arcs.StraightSegment(z0, z))
);
arcs.push(new TypoGeom.Arcs.StraightSegment(z0, z));
z0 = z;
} else {
const z1 = z;
Expand All @@ -63,10 +61,11 @@ class FairizedShapeSink {
beginShape() {}
endShape() {
if (this.lastContour.length > 2) {
const zFirst = this.lastContour[0],
zLast = this.lastContour[this.lastContour.length - 1];
if (isOccurrent(zFirst, zLast)) this.lastContour.pop();
this.contours.push(this.lastContour);
const c = this.lastContour.reverse();
const zFirst = c[0],
zLast = c[c.length - 1];
if (isOccurrent(zFirst, zLast)) c.pop();
this.contours.push(c);
}
this.lastContour = [];
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sarasa-gothic",
"version": "0.18.3",
"version": "0.18.4",
"main": "./run",
"scripts": {
"build": "verda -f verdafile.js",
Expand Down
Loading

0 comments on commit 3b98e52

Please sign in to comment.