I saved the utf-8 encoded DOT code file. But it cannot output a png image file with a custom form. Is there an example to demonstrate custom use of a character set in graphics?
Demo code is here.
digraph G { bgcolor=black; edge [arrowsize=1, color=red]; node [penwidth=1, color=white, labelloc=b]; BR [shape=box, label="BR", charset="utf-8", image="εΎε
.png"]; DS [shape=plaintext, fontname="SimSun", fontcolor=white, fontsize=18, label="ζ΅ηΉ"]; BR -> DS[dir=forward]; }
And the command line results are listed below.
C:\dot>dot -Gcharset=utf-8 -Tpng -o demo.png demo.dot Warning: No such file or directory while opening ι₯ζ§ε.png Warning: No or improper image="ι₯ζ§ε.png" for node "BR"
source share