From: Ben Harris Date: Sat, 2 Nov 2024 19:24:42 +0000 (+0000) Subject: Don't emit first point of a contour twice X-Git-Tag: bedstead-3.246~66 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=6f2fcc8799829b655f3dc249a88578fbc1ed20f1;p=bedstead-debian.git 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. --- 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,