Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001877graphvizDotpublic2010-05-10 11:412011-04-28 04:03
ReporterBolek 
Assigned Togviz 
PrioritynormalSeveritymajorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSx86-Windows-XP SP3 EngOS Version
Summary0001877: Parts of characters stripped in PNG, GIF
Description



Hello,



if you try the DOT code below and convert it to PNG or GIF using the following call
<CD>
dot -Tpng -O file.txt
</CD>
you get image with part of the last Q and W not shown. When drawing to PDF, the text is displayed correctly.



Also, the underscores are missing in the upper line.
Steps To Reproduce

digraph NAME_000000_component_6{

    graph [concentrate=true,
        margin="0.05",
        nodesep="0.1",
        ranksep="0.2",
        ratio=compress
    ];
    node [fontname=Helvetica,
        fontsize=10,
        height=".3",
        shape=ellipse,
        width=".5"
    ];
    edge [dir=back];
     NAME_00000B [URL="#LINK2",
            label="(QQQ) WW_WWWW_QQQ"];
        NAME_000021 [URL="#LINK_WWWW",
            label=WW_WWWW,
            shape=box];
        NAME_00000B -> NAME_000021;
}
Additional Information

[ellson]
Are you building from source, or using our binaries?

Graphviz uses (or should be using) pango for its text layout. Pango is certainly not assuming fixed width characters.

I'm not seeing any problems with this graph, on Linux. See attached.

Please send stderr output when you run with "dot -v -Tpng file.txt"

[arif]
Label is not trimmed , However underscore is not visible because of the magical bottom pixel bug which keeps coming back every other month. See
\<A HREF="b1947.png"\>output\</A\>.
TagsNo tags attached.
AUXILLARY-FILEShttp://www.graphviz.org/bugs/b1947.png [^]
DATE-FIXED
FIX-COMMENT 
Don't remember it exactly but once I run into a similar problem in C or C# (?)
The problem was that the system provided with me some average
character width which I multiplied by number of chars. I then used GetTextExtent
to get the actual size of the t
FORMER-ID1947
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT*
VERSION     2.26.3
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user1


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker