Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000517graphvizDotpublic2004-11-10 12:332011-04-28 04:02
ReporterAndrew Sadler2 
Assigned Toerg 
PrioritynormalSeveritycriticalReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-OS Version
Summary0000517: textsize approximation is broken (labels exceed node boundries massively)
Description



When building 1.16 under linux WITHOUT CAIRO, the size of nodes seems
to be indepentednt of the size of their labels.



In particular labels exceed the node sizes easily.
Steps To Reproduce

digraph {
a [label="Wow what a big label this is"];
};
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT 
I tracked the problem down to the file fontmetrics.c and
the estimate_textsize() function.

Simply adding one line toward the end of the function fixes the problem

Old code

    if ((p = textline->str)) {
        while ((c = *p++))
            textline->width += Fontwid
FORMER-ID566
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (22 Sept 2004)
VERSION     1.16
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

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


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