Fix default fonts in GraphvizReportDialog
svn: r9581
This commit is contained in:
parent
fe8a8d4986
commit
12bdeb40a6
@ -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>
|
2007-12-24 Stéphane Charette <stephanecharette@gmail.com>
|
||||||
* src/ReportBase/_GraphvizReportDialog.py: more generic changes
|
* src/ReportBase/_GraphvizReportDialog.py: more generic changes
|
||||||
to the new GraphViz base class
|
to the new GraphViz base class
|
||||||
|
@ -134,9 +134,6 @@ class GVDocBase(BaseDoc.BaseDoc,BaseDoc.GVDoc):
|
|||||||
pheight = paper_size.get_height_inches()
|
pheight = paper_size.get_height_inches()
|
||||||
pwidth = paper_size.get_width_inches()
|
pwidth = paper_size.get_width_inches()
|
||||||
|
|
||||||
if self.fontfamily == "":
|
|
||||||
self.fontfamily = "FreeSans"
|
|
||||||
|
|
||||||
# graph size
|
# graph size
|
||||||
if self.paper.get_orientation() == BaseDoc.PAPER_LANDSCAPE:
|
if self.paper.get_orientation() == BaseDoc.PAPER_LANDSCAPE:
|
||||||
rotate = 90
|
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( ' 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( ' 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( ' 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' )
|
self.dot.write( '\n' )
|
||||||
|
|
||||||
def open(self, filename):
|
def open(self, filename):
|
||||||
|
Loading…
Reference in New Issue
Block a user