Closed ma-chengyuan closed 1 year ago
Thanks for reporting the bug. It's caused by an uncommon usage of an XDV command that expects the width of the string together with the glyphs to type. Instead of the actual width the unexpected value 0 is given which leads to the misalignment. I've prepared a patch that fixes the issue and will commit it later today.
I am using dvisvgm 2.14. Here's an MWE of the problem:
Converting the above to SVG with
produces
The incorrect SVG produced:
I am no expert in SVG, but it appears that if
x
is omitted, the x position gets implicitly advanced by the x advance of the font. Therefore the components of the vertical braces are misaligned.With
--no-fonts
it produces the correct result: