Number: 1148
Title: Text length is larger than the nodes box
Submitter: justxi
Date: Sat Jun 16 07:43:20 2007
Subsys: Dot
Version: 2.12
System: x86-Linux-Gentoo 2007 (desktop)
Severity: major
Problem:
dot test.dot -Tpng > test.png

produces a png file where the text length is larger than the box.
Input:

digraph R {
        rankdir="";
        dirType="forward";

        node [style="filled" shape=box fillcolor=yellow];
        node1 [label="Project registration", fillcolor=green];
        node1a [shape=point]
        node2 [label="{Basics }"  fillcolor=green shape=record]
        node2a [shape=point]
        node3 [label="stable"  fillcolor=green ]

        Milestone1 [label="Milestone 1" fillcolor=green shape=diamond]

        { rank=same;Milestone1;node1a;}



        node1 -> node1a -> node2 -> node2a -> node3

}
Output file: b1148.png
Comments:
[erg] Please try running dot with the -v flag and send me the output. Also, it would be helpful if you would send along test.png [justxi] The plugin configuration file:

        /usr/lib/graphviz/config
                was successfully loaded.
    render      :  canon cmap cmapx dia dot fig gd gd2 gif hpgl imap ismap jpeg jpg mif mp pcl pic plain plain-ext png ps ps2 svg svgz vrml vtx wbmp xdot
    layout      :  circo dot fdp neato nop nop1 nop2 twopi
    textlayout  :
    device      :
    loadimage   :  2ps gif2fig gif2gd gif2ps gif2svg gif2vrml jpeg2fig jpeg2gd jpeg2ps jpeg2svg jpeg2vrml png2fig png2gd png2ps png2svg png2vrml ps2ps
dot: fontname "Times-Roman" resolved to "[internal times]"
network simplex: 5 nodes 4 edges 0 iter 0.00 sec
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross R: 0 crossings, 0.00 secs.
network simplex: 10 nodes 9 edges 0 iter 0.00 sec
routesplines: 4 edges, 12 boxes 0.00 sec
dot: allocating a 119K PaletteColor GD image

[erg] The line

dot: fontname "Times-Roman" resolved to "[internal times]"

shows that dot is not finding a good Times-Roman font. Did you build dot using fontconfig? If so, what is the output of fc-list?
Owner: *
Status: *