Number: 1254
Title: Crash in pango with fontsize=1
Submitter: Skye Bender-deMoll
Date: 21 Dec 2007
Subsys: Output generation
Version: 2.16
System: *-*-*
Severity: minor
Problem: it gives a segfault every time. Obviously it doesn't make sense to set fontsize to "circle", but this was part of a much larger string of graph parameters I was generating from php. Prolly it should ignore the bad fontsize argument or throw an error?
Input:
digraph G {
node [label=" "];
"90" [fontsize="circle" ];
}
Comments:
[erg] There are two bugs here. The function late_double which is used to get the fontsize parameter uses atof which means it can't tell if the attribute starts with a valid number. It just checks to see if the is too low and if so, returns the minimum. It would be better to do this only for numeric input. For garbage input, it should return the default.

The more general error is that pangocairo appears not to like a fontsize of 1. We should probably use a similar technique here as what is done in the gd plugin, converting text which is too small into a line or nothing.
Owner: *
Status: *