dylanowen / mdbook-graphviz

Mozilla Public License 2.0
44 stars 9 forks source link

Allow use of cairo to render svgs #88

Closed alek3y closed 4 months ago

alek3y commented 11 months ago

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).