diff --git a/ChangeLog b/ChangeLog index 37715757d..f26c60234 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-12-24 Brian Matherly + * src/ReportBase/_GraphvizReportDialog.py: Fix default font. + 2007-12-24 Stéphane Charette * src/ReportBase/_GraphvizReportDialog.py: more generic changes to the new GraphViz base class diff --git a/src/ReportBase/_GraphvizReportDialog.py b/src/ReportBase/_GraphvizReportDialog.py index 2b111dc85..437c80791 100644 --- a/src/ReportBase/_GraphvizReportDialog.py +++ b/src/ReportBase/_GraphvizReportDialog.py @@ -134,9 +134,6 @@ class GVDocBase(BaseDoc.BaseDoc,BaseDoc.GVDoc): pheight = paper_size.get_height_inches() pwidth = paper_size.get_width_inches() - if self.fontfamily == "": - self.fontfamily = "FreeSans" - # graph size if self.paper.get_orientation() == BaseDoc.PAPER_LANDSCAPE: rotate = 90 @@ -183,7 +180,12 @@ class GVDocBase(BaseDoc.BaseDoc,BaseDoc.GVDoc): # self.dot.write( ' edge [len=0.5 style=solid arrowhead=none arrowtail=normal fontsize=12];\n') # self.dot.write( ' node [style=filled fontname="FreeSans" fontsize=12];\n' ) self.dot.write( ' edge [len=0.5 style=solid arrowhead=none arrowtail=normal fontsize=%d];\n' % self.fontsize ) - self.dot.write( ' node [style=filled fontname="%s" fontsize=%d];\n' % ( self.fontfamily, self.fontsize ) ) + if self.fontfamily: + self.dot.write( ' node [style=filled fontname="%s" fontsize=%d];\n' + % ( self.fontfamily, self.fontsize ) ) + else: + self.dot.write( ' node [style=filled fontsize=%d];\n' + % self.fontsize ) self.dot.write( '\n' ) def open(self, filename):