viz-js
viz-js copied to clipboard
multi-byte characters in labels take up twice as much space as in 'native' graphviz
Steps taken
Render this digraph with viz.js (either version 1.8.x or 2.0.0)
digraph {
node [shape=box]
"Hello world" [label="Привет мир"]
}
... or this one that uses html style label formatting...:
digraph {
rankdir=LR
node [shape=plaintext]
"Hello world" [label= <
<table border="1" cellborder="0">
<tr><td>Привет мир</td></tr>
</table>
>]
}
Expected
This is the output from the 'native' graphviz dot (version 2.40.1) respectively:

Found
This is the viz.js output for both digraphs:
