Font substitution in SVG output: Helvetica -> Arial ?

26 views
Skip to first unread message

emmanuelito

unread,
Jun 23, 2009, 4:46:11 PM6/23/09
to pydot

In Debian 4, pydot 0.9.6, the follow code:
...
n.set_fontname('Helvetica')
n.set_fontsize(8.0)
...
g.write(path=path, format='svg')

correctly gives XML markup with:
style="font-family:Helvetica;font-size:8.00pt;"


In Debian 5, pydot 0.9.6, the same code render as:
style="font-family:Arial;font-size:8.00;"

(awfull, obviously, and not the same size on screen with Firefox/Mac)

Same python (2.4), same pydot.
Who is responsible for this font substitution ?

Thanks,
Emmanuel
Reply all
Reply to author
Forward
0 new messages