Graphviz Issue Tracker - graphviz
View Issue Details
0002590graphvizDotpublic2016-02-09 08:372016-02-14 17:06
cp1 
 
normalmajoralways
newopen 
WindowsWindowsWindows 7
0002590: Cyrillic letters (1st word of) within label disappears from SVG output file
I have .dot file like this one:

digraph "excels" {
    size = "11,8";
    node [ shape = record ];
    rankdir=LR;
    charset="UTF-8";

    all_files[label="Выяснить и согласовать полный набор xls файлов"]

When processed by dot using command line:

dot excels.dot -Gcharset=utf-8 -Tsvg -o excels.svg

I have in .svg file just this:

<g id="node11" class="node"><title>all_files</title>
<polygon fill="none" stroke="black" points="95,-283 95,-319 337,-319 337,-283 95,-283"/>
<text text-anchor="middle" x="216" y="-297.3" font-family="Times New Roman,serif" font-size="14.00">исогласоватьполныйнаборxls файлов</text>
</g>

There is no 1st label word at all, and there is no spaces between words.
No tags attached.
dot excels.dot (3,582) 2016-02-09 08:37
http://www.graphviz.org/mantisbt/file_download.php?file_id=498&type=bug
? excels.svg (25,284) 2016-02-09 08:37
http://www.graphviz.org/mantisbt/file_download.php?file_id=499&type=bug
Issue History
2016-02-09 08:37cp1New Issue
2016-02-09 08:37cp1File Added: excels.dot
2016-02-09 08:37cp1File Added: excels.svg
2016-02-09 09:04cp1Note Added: 0001024
2016-02-09 09:08cp1Note Added: 0001025
2016-02-09 12:22ellsonNote Added: 0001026
2016-02-10 00:33cp1Note Added: 0001031
2016-02-10 03:03cp1Note Added: 0001033
2016-02-10 03:18cp1Note Added: 0001034
2016-02-10 07:13cp1Note Edited: 0001034bug_revision_view_page.php?bugnote_id=1034#r285
2016-02-14 17:06ergNote Added: 0001035

Notes
(0001024)
cp1   
2016-02-09 09:04   
HTML labels behave the same way. Output format also looks like irrelevant - the same issue exists for PNG format.
(0001025)
cp1   
2016-02-09 09:08   
dot - graphviz version 2.38.0 (20140413.2041)
(0001026)
ellson   
2016-02-09 12:22   
I suspect the issue maybe fonts. Could you please attach the output of:
    dot -v -Tsvg -o excels.svg excels.dot
(this will indicate what font and what renderer is being used).

The issue does not occur with:
    graphviz version 2.39.20160206.2105
    on Fedora 23 x8664 Linux
    using either of the available svg renderers: -Tsvg , -Tsvg:cairo
(0001031)
cp1   
2016-02-10 00:33   
C:\workspace\dot>dot -v -Tsvg -o excels.svg excels.dot
dot - graphviz version 2.38.0 (20140413.2041)
libdir = "C:\usr\graphviz-2.38\bin"
Activated plugin library: gvplugin_core.dll
Using render: svg:core
Using device: svg:svg:core
Activated plugin library: gvplugin_dot_layout.dll
Using layout: dot:dot_layout
The plugin configuration file:
        C:\usr\graphviz-2.38\bin\config6
                was successfully loaded.
    render : cairo dot fig gd gdiplus 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 emf emfplus eps fig gd gd2 gif gv imap imap_np ismap jpe jpeg jpg metafile pdf pic plain plain-ex
t png pov ps ps2 svg svgz tif tiff tk vml vmlz vrml wbmp xdot xdot1.2 xdot1.4
    loadimage : (lib) bmp eps gd gd2 gif jpe jpeg jpg png ps svg
pack info:
  mode undefined
  size 0
  flags 0
  margin 8
pack info:
  mode node
  size 0
  flags 0
fontname: "Times-Roman" resolved to: (ps:pango Times New Roman, ) (PangoCairoWin32Font) "Times New Roman, 13.9990234375"
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
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
network simplex: 44 nodes 49 edges maxiter=2147483647 balance=0
network simplex: 44 nodes 49 edges 0 iter 0.00 sec
Maxrank = 14, minrank = 0
mincross: pass 0 iter 0 trying 0 cur_cross 6 best_cross 6
mincross: pass 0 iter 1 trying 0 cur_cross 4 best_cross 4
mincross: pass 0 iter 2 trying 1 cur_cross 4 best_cross 4
mincross: pass 0 iter 3 trying 2 cur_cross 4 best_cross 4
merge2: graph excels_vba, rank 2 has only 4 < 7 nodes
mincross: pass 2 iter 0 trying 0 cur_cross 3 best_cross 3
mincross: pass 2 iter 1 trying 0 cur_cross 0 best_cross 0
mincross: pass 2 iter 0 trying 0 cur_cross 0 best_cross 0
mincross excels_vba: 0 crossings, 0.01 secs.
network simplex: 170 nodes 241 edges maxiter=2147483647 balance=2
network simplex: 170 nodes 241 edges 58 iter 0.00 sec
routesplines: 40 edges, 208 boxes 0.00 sec
Using render: svg:core
Using device: svg:svg:core
gvRenderJobs excels_vba: 0.01 secs.
(0001033)
cp1   
2016-02-10 03:03   
Looks like -Gfontname=Helvetica is completely ignored, and I see fontname: "Times-Roman" again if -v specified in command line.
(0001034)
cp1   
2016-02-10 03:18   
(edited on: 2016-02-10 07:13)
I can specify fontname for the node, but result is pretty the same: font was changed (tryed Arial or Helvetica), but characters still missing from output file.

(0001035)
erg   
2016-02-14 17:06   
It doesn't seem like a font problem. The characters that occur seem correct. As cp1 reports, it just appears that the first word is missing, and no spacing is done between later words. My guess is that this is some bug in cairopango, which has since been fixed. I can't recall how old the cairopango library is that we supply with the Windows version. Unfortunately, the Graphviz maintainers no longer have access to a Windows machine, and nobody seems to want to help produce an updated Windows version.