Skip to content

Commit a704fdb

Browse files
committed
viewcfg: use the 'helvetica' font
1 parent bfe219f commit a704fdb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/viewcfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ import subprocess
3434
import sys
3535
import tempfile
3636

37+
fontname = "helvetica"
38+
3739

3840
class Block(object):
3941

@@ -152,6 +154,9 @@ def main():
152154
file_name = tempfile.gettempdir() + "/viewcfg" + suffix + ".dot"
153155
with open(file_name, 'w') as out_file:
154156
out_file.write('digraph "CFG" {\n')
157+
out_file.write("""graph [fontname = "{font}"];
158+
node [fontname = "{font}"];
159+
edge [fontname = "{font}"];""".format(font=fontname))
155160
for block in block_list:
156161
if block.content is not None:
157162
out_file.write(

0 commit comments

Comments
 (0)