~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to dotgraph.py

  • Committer: Aaron Bentley
  • Date: 2005-09-22 17:53:58 UTC
  • Revision ID: abentley@panoramicfeedback.com-20050922175358-50ad786c4a1eb4fa
Enforced a font and size

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
        shutil.rmtree(tempdir)
193
193
    return status
194
194
 
195
 
def invoke_dot(input, out_file=None, file_type='svg', antialias=None):
196
 
    cmdline = ['dot', '-T%s' % file_type]
 
195
def invoke_dot(input, out_file=None, file_type='svg', antialias=None, 
 
196
               fontname="Helvetica", fontsize=11):
 
197
    cmdline = ['dot', '-T%s' % file_type, '-Nfontname=%s' % fontname, 
 
198
               '-Efontname=%s' % fontname, '-Nfontsize=%d' % fontsize,
 
199
               '-Efontsize=%d' % fontsize]
197
200
    if out_file is not None:
198
201
        cmdline.extend(('-o', out_file))
199
202
    try: