Re:Create diagrams with code using Graphviz
by cechow on Thursday June 11, 2020 @01:14PM
(#23490998)
I've been looking into supporting UTF-8 characters to create graphs with non-English text using Graphviz in an application that's used on a number of different machines. Is there a straightforward way of doing this right now?
It would be nice if we could add a fonts folder in our application folder and set a relative path to it for Graphviz to perform its lookup in without having to rebuild Graphviz without fontconfig.
[ Parent
| on HN ]
Re:Create diagrams with code using Graphviz
by steveroush on Thursday June 11, 2020 @08:23PM
(#23494665)
Hmmm, Graphviz can do this now. Search the FAQ for "how do I use non-ASCII character sets"
I took a closer look at the FAQ and it doesn't sound like Graphviz can do exactly what I'd like it to do.
"It is essential that a font which has the glyphs for your specified characters is available at final rendering time."
It sounds to me like UTF-8 encoded characters won't show if the font isn't available on the machine, in which case we'd have to either somehow force a font install or ideally just package the font with the application. The latter would require rebuilding Graphviz without fontconfig enabled, I think?