From: Emden R. Gansner Date: Tue, 17 Jun 2014 19:11:30 +0000 (-0400) Subject: Try an experiment using the default line join style postscript, quartz and cairo. X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f89402a4a5052486ceececb0b1fa10af4c4d70ea;p=graphviz Try an experiment using the default line join style postscript, quartz and cairo. 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. --- diff --git a/plugin/core/ps.txt b/plugin/core/ps.txt index 888aef45e..de6a639f5 100644 --- a/plugin/core/ps.txt +++ b/plugin/core/ps.txt @@ -156,7 +156,6 @@ def %%EndProlog %%BeginSetup 14 default-font-family set_font -1 setmiterlimit % /arrowlength 10 def % /arrowwidth 5 def diff --git a/plugin/pango/gvrender_pango.c b/plugin/pango/gvrender_pango.c index 394be35cc..d94a86766 100644 --- a/plugin/pango/gvrender_pango.c +++ b/plugin/pango/gvrender_pango.c @@ -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) diff --git a/plugin/quartz/gvrender_quartz.c b/plugin/quartz/gvrender_quartz.c index 46b4b7a3f..38f5206f4 100644 --- a/plugin/quartz/gvrender_quartz.c +++ b/plugin/quartz/gvrender_quartz.c @@ -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);