Package: graphviz
Version: 2.26.3-12
I can't select a font in the graphs made by dot or neato. Regardless of
the fontname I specify, the result is always "DejaVu Sans 24".
For example:
$ cat ctext.dot
digraph G {
xyz [label = "hello\nworld",color="blue",fontsize=24,font name="Times
New Roman",style=filled,fontcolor="pink"];
node [style=filled];
red [color=red];
green [color=green];
red -> green;
}
$ fc-match "Times New Roman"
Times_New_Roman.ttf: "Times New Roman" "Normal"
$ dot -Tpdf -octext.pdf -v ctext.dot 2>&1 | grep font
fontname: "Times-Roman" resolved to: (ps:pango Times Roman,)
(PangoCairoFcFont) "DejaVu Sans 24"
So i try this fontname...
$ fc-match "Times-Roman"
n021003l.pfb: "Nimbus Roman No9 L" "Regular"
$ cat ctext.dot
digraph G {
xyz [label = "hello\nworld",color="blue",fontsize=24,font
name="Times-Roman",style=filled,fontcolor="pink"];
node [style=filled];
red [color=red];
green [color=green];
red -> green;
}
$ dot -Tpdf -octext.pdf -v ctext.dot 2>&1 | grep font
fontname: "Times-Roman" resolved to: (ps:pango Times Roman,)
(PangoCairoFcFont) "DejaVu Sans 24"
Note that when I choose eps or ps as device, I get a serif font, but the
message returned by dot/neato is always the same. And in this case, I
can't get a sans-serif font by specifying "helvetica" or so.
Note also that dot/neato associates strangely Times-Roman with a
sans-serif font.
I am using Debian GNU/Linux wheezy/sid Linux 2.6.32-5-686 i686
Regards,
--
Gauthier Vandemoortele
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]