Number: 241
Title: Dot's fig output does not honor bold style
Submitter: Antti Honkela
Date: Tue Jan 7 07:01:05 2003
Subsys: Dot
Version: 1.8.10
System: *-*-
Severity: minor
Problem: The .fig output of dot does not honor style "bold" used for nodes.
Input:
digraph G {
  X [style=bold];
  X -> Y;
}
Comments:
A unified diff of the relatively obvious fix to dotneato/common/figgen.c is given below.
Fix:
--- dotneato/common/figgen.c.orig Wed Jul 31 20:47:35 2002 +++ dotneato/common/figgen.c Tue Jan 7 12:55:56 2003 @@ -452,7 +452,7 @@ int object_code=3; /* always 3 for spline */ int sub_type=4; /* always 2 for opened interpolated spline */ int line_style=cstk[SP].line_style; /* solid, dotted, dashed */ - int thickness=1; + int thickness=cstk[SP].penwidth; int pen_color=cstk[SP].pencolor_ix; int fill_color=0; int depth=0; @@ -491,7 +491,7 @@ int object_code=2; /* always 2 for polyline */ int sub_type=3; /* always 3 for polygon */ int line_style=cstk[SP].line_style; /* solid, dotted, dashed */ - int thickness=1; + int thickness=cstk[SP].penwidth; int pen_color=cstk[SP].pencolor_ix; int fill_color=cstk[SP].fillcolor_ix; int depth=0; @@ -530,7 +530,7 @@ int object_code=1; /* always 1 for ellipse */ int sub_type=1; /* ellipse defined by radii */ int line_style=cstk[SP].line_style; /* solid, dotted, dashed */ - int thickness=1; + int thickness=cstk[SP].penwidth; int pen_color=cstk[SP].pencolor_ix; int fill_color=cstk[SP].fillcolor_ix; int depth=0; @@ -584,7 +584,7 @@ int object_code=2; /* always 2 for polyline */ int sub_type=1; /* always 1 for polyline */ int line_style=cstk[SP].line_style; /* solid, dotted, dashed */ - int thickness=1; + int thickness=cstk[SP].penwidth; int pen_color=cstk[SP].pencolor_ix; int fill_color=0; int depth=0;
Owner: ellson
Status: Fixed (7 January 2003)