Using -Tsvg:cairo over -Tsvg is one of the recommended solutions to HTML labels having wrong alignment.
This, however, would embed the font and permanently not allow clickable links (e.g. labelURL).
As a compromise, I would suggest adding a config option to change the arguments list passed to dot, so that other than changing -Tsvg (the default) we could also append arguments like -{G,N,E}name=val (since on my machine it seems cairo is using another font, which has to be changed inside every codeblock).
Using
-Tsvg:cairo
over-Tsvg
is one of the recommended solutions to HTML labels having wrong alignment. This, however, would embed the font and permanently not allow clickable links (e.g.labelURL
).As a compromise, I would suggest adding a config option to change the arguments list passed to
dot
, so that other than changing-Tsvg
(the default) we could also append arguments like-{G,N,E}name=val
(since on my machine it seems cairo is using another font, which has to be changed inside every codeblock).