GNOME Bugzilla – Bug 116098
UML to SVG, Text is too long and goes out of bound
Last modified: 2007-10-27 08:50:27 UTC
Scenario: In Dia, create a UML class diagram, and name this class as say, "TokenizedTable". Then add one operator "getType" with return value "const string &". This operator should become a text "+getName(): const string" inside the class diagram. Now export the diagram to SVG, and open that SVG file again by Dia. The text "+getName(): const string " may be too long to fit into the class diagram. The following is an exported SVG file: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="10cm" height="3cm" viewBox="2 1 10 3"> <rect style="fill: #ffffff" x="2.7" y="1.35" width="9.7" height="1.4"/> <rect style="fill: none; stroke-width: 0.1; stroke: #000000" x="2.7" y="1.35" width="9.7" height="1.4"/> <text style="fill: #000000; text-align: center; font-size: 1" x="7.55" y="2.35">TokenizedTable</text> <rect style="fill: #ffffff" x="2.7" y="2.75" width="9.7" height="0.4"/> <rect style="fill: none; stroke-width: 0.1; stroke: #000000" x="2.7" y="2.75" width="9.7" height="0.4"/> <rect style="fill: #ffffff" x="2.7" y="3.15" width="9.7" height="1"/> <rect style="fill: none; stroke-width: 0.1; stroke: #000000" x="2.7" y="3.15" width="9.7" height="1"/> <text style="fill: #000000; text-align: left; font-size: 1" x="2.85" y="3.9">+getName(): const string </text> </svg>
This still occurs in v0.94, Windows version. The severity of this bug should be changed to something other than enhancement (i.e. normal).
Confirmed. Font differs from dia source after exporting to svg (depending on the source font properties). Used viewers: inkscape, gqview, kivio.
*** This bug has been marked as a duplicate of 316590 ***