[Output Generation] Text overflows in svg output
Ported Issue from Mantis Original ID: 2279 Reported By: Romesnil
SEVERITY: MINOR Submitted: 2013-05-06 16:07:53
OS: ARCHLINUX
PLATFORM: LINUX
DESCRIPTION
Using some fonts (Palatino-Italic for example), text overflows its node when rendering using graphviz native SVG driver.
STEPS TO REPRODUCE
digraph test { "1" [label="text overflow",shape=box,fontname="Palatino"]; "2" [label="text overflow",shape=box,fontname="Palatino-Italic"]; }
ADDITIONAL INFORMATION
output in verbose mode:
dot - graphviz version 2.30.1 (20130303.0813)
libdir = "/usr/lib/graphviz"
Activated plugin library: libgvplugin_pango.so.6
Using textlayout: textlayout:cairo
Activated plugin library: libgvplugin_core.so.6
Using render: svg:core
Using device: svg:svg:core
Activated plugin library: libgvplugin_dot_layout.so.6
Using layout: dot:dot_layout
The plugin configuration file:
/usr/lib/graphviz/config6
was successfully loaded.
render : cairo dot fig gd map pic pov ps svg tk vml vrml xdot
layout : circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
textlayout : textlayout
device : bmp canon cmap cmapx cmapx_np dot eps fig gd gd2 gif gv ico imap imap_np ismap jpe jpeg jpg pdf pic plain plain-ext png pov ps ps2 svg svgz tif tiff tk vml vmlz vrml wbmp x11 xdot xlib
loadimage : (lib) eps gd gd2 gif jpe jpeg jpg png ps svg
fontname: "Palatino" resolved to: (PangoCairoFcFont) "URW Palladio L, Roman" /usr/share/fonts/Type1/p052003l.pfb
fontname: "Palatino-Italic" resolved to: (ps:pango URW Palladio L, REGULAR ITALIC) (PangoCairoFcFont) "URW Palladio L, Italic" /usr/share/fonts/Type1/p052023l.pfb
network simplex: 1 nodes 0 edges maxiter=2147483647 balance=1
network simplex: 1 nodes 0 edges 0 iter 0.00 sec
network simplex: 1 nodes 0 edges maxiter=2147483647 balance=1
network simplex: 1 nodes 0 edges 0 iter 0.00 sec
Maxrank = 0, minrank = 0
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 test: 0 crossings, 0.00 secs.
network simplex: 2 nodes 1 edges maxiter=2147483647 balance=2
network simplex: 2 nodes 1 edges 0 iter 0.00 sec
routesplines: 0 edges, 0 boxes 0.00 sec
Using render: svg:core
Using device: svg:svg:core
gvRenderJobs test: 0.00 secs.
Edited by Matthew Fernandez