-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multi-byte characters in labels take up twice as much space as in 'native' graphviz #10
Comments
Hey! I have forked the web app as well, you can find it at aduh95.github.io/viz.js-playground. |
After digging out, it seems to be related to a font issue, it's still unclear to me if that's easily fixable at the level of Viz.js. Reference: https://gitlab.com/graphviz/graphviz/-/issues/1712 |
As I understand Graphviz uses one thing to estimate sizes and another thing to actually render. Seems like in that Gitlab issue it lacked some libs during compilation. You probably need to have it when you compile the thing for github.io |
Yes, although I don't know which libs, and at which step they are required. PR's welcome if anyone is able to get it working. |
Is this issue also related to measuring bold and italic text in html labels? See here for an example. If not, I would open another issue. I am pretty sure that there was once a version of Viz.js where this was not a problem. But on the current version of http://viz-js.com/ this is already occurring. I tried to work around this by adding empty spaces between bold and non-bold text. But this does not work reliably. |
Well if it's not reproducible on native graphviz, it's probably the same issue – or rather, it's probably the same solution. I think the way to move forward would be to build native graphviz removing external library one-by-one to identify which one is needed to solve the issue. |
I made a workaround that works. |
@sebbloc Thanks that looks promising :) |
This is my fix there: |
Hello.
Looks like this repo is a fork. Is this bug fixed in it? sverweij/state-machine-cat#19
If so, how do I launch it similarly to http://viz-js.com/? Is there a Docker image or Dockerfile?
Original issue (link)
Steps taken
Render this digraph with viz.js (either version 1.8.x or 2.0.0)
... or this one that uses html style label formatting...:
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:
The text was updated successfully, but these errors were encountered: