Fix default fonts in GraphvizReportDialog

svn: r9581
This commit is contained in:
Brian Matherly 2007-12-25 05:27:27 +00:00
parent fe8a8d4986
commit 12bdeb40a6
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,6 @@
2007-12-24 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_GraphvizReportDialog.py: Fix default font.
2007-12-24 Stéphane Charette <stephanecharette@gmail.com>
* src/ReportBase/_GraphvizReportDialog.py: more generic changes
to the new GraphViz base class

View File

@ -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):