From 6f2fcc8799829b655f3dc249a88578fbc1ed20f1 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 2 Nov 2024 19:24:42 +0000 Subject: [PATCH] Don't emit first point of a contour twice Type 2 charstrings implicitly close each contour with a line, so there's no need for us to explicitly do so. --- bedstead.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bedstead.c b/bedstead.c index 14b9cc2..c1ee06a 100644 --- a/bedstead.c +++ b/bedstead.c @@ -3571,6 +3571,7 @@ emit_contour(point *p0) { point *p = p0, *p1; + if (p->prev) p->prev->next = NULL; /* Break the loop. */ do { printf(" %g %g %s\n", (double)(p->v.x - cur.x) / XSCALE, -- 2.30.2