]> granicus.if.org Git - graphviz/commitdiff
Try an experiment using the default line join style postscript, quartz and cairo.
authorEmden R. Gansner <erg@alum.mit.edu>
Tue, 17 Jun 2014 19:11:30 +0000 (15:11 -0400)
committerEmden R. Gansner <erg@alum.mit.edu>
Tue, 17 Jun 2014 19:11:30 +0000 (15:11 -0400)
This will be a miter join, which will give a sharp corner for most reasonable line widths.
We were using default join in postscript but by setting the miter limit to 1, this was equivalent
to a bevel join.

plugin/core/ps.txt
plugin/pango/gvrender_pango.c
plugin/quartz/gvrender_quartz.c

index 888aef45eb67635989968cd7d62f1bf4e2059d79..de6a639f50d6b8cac4097c2957b7fce66ad127eb 100644 (file)
@@ -156,7 +156,6 @@ def
 %%EndProlog
 %%BeginSetup
 14 default-font-family set_font
-1 setmiterlimit
 % /arrowlength 10 def
 % /arrowwidth 5 def
 
index 394be35cc7605f2e5d722173278234b56b748af0..d94a867664d5ba67a61621e12b7c2d2bbbd42e64 100644 (file)
@@ -176,7 +176,7 @@ static void cairogen_begin_page(GVJ_t * job)
     cairo_rectangle(cr, job->clip.LL.x, - job->clip.LL.y,
            job->clip.UR.x - job->clip.LL.x, - (job->clip.UR.y - job->clip.LL.y));
     cairo_clip(cr);
-    cairo_set_line_join(cr, CAIRO_LINE_JOIN_ROUND);
+    /* cairo_set_line_join(cr, CAIRO_LINE_JOIN_ROUND); */
 }
 
 static void cairogen_end_page(GVJ_t * job)
index 46b4b7a3f28fc13aa0f87a11fb8c908fd5e1092a..38f5206f447615f617faceec90c6e6418de3dcb6 100644 (file)
@@ -249,8 +249,8 @@ static void quartzgen_begin_page(GVJ_t * job)
     CGContextRef context = (CGContextRef) job->context;
     CGContextBeginPage(context, &bounds);
     CGContextSaveGState(context);
-    CGContextSetMiterLimit(context, 1.0);
-    CGContextSetLineJoin(context, kCGLineJoinRound);
+    /* CGContextSetMiterLimit(context, 1.0); */
+    /* CGContextSetLineJoin(context, kCGLineJoinBevel); */
 
     /* set up the context transformation */
     CGContextScaleCTM(context, job->scale.x, job->scale.y);