rsvg-convert text-anchor middle end causes strange position issue with certain fonts / outputs
incorrect text output/positioning occurs under these circumstances:
- Use rsvg-convert v2.40.20, v2.42.2, v2.44.2 (though latest is slightly better)
- Use Ubuntu 18.04 or 18.10
- Use output format other than PNG (rendering perfect on PNG, broken on svg, pdf, ps etc)
- Use a non-fixed width font (eg, Arial installed with
apt install ttf-mscorefonts-installer
) - Use text-anchor middle or end
- Use certain capital letters (we know of V, L & T causing issues)
source file:
expected output: (obtained from rsvg-convert -f png -o file.png source.svg
)
actual output (rsvg-convert v2.44.2) (raster from rsvg-convert -f svg -o file.svg source.svg
)
actual output (rsvg-convert v2.40.20 / v2.42.2)
Aside: this was working on ubuntu 14.04