Any scaling leads to bad text kerning on OSX
The following only happens on OSX, not on Linux, even with the same version of librsvg
When I run
$ rsvg-convert -a -f png -z 0.5 background.svg -o test.png
on
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="1000px" height="640px" viewBox="0 0 1000 640" preserveAspectRatio="xMidYMid meet">
<text x="0" y="114" font-family="Arial" font-size="86px">Hello World!</text>
</svg>
The output looks something like this (these are PNGs)
-z 2.0
outputs
-z 1.0
outputs
Here are the results with -t svg
(these are SVGs)
-t svg -z 0.5
-t svg -z 2.0
-t svg -z 1.0
Environment
$ rsvg-convert --version
rsvg-convert version 2.46.2
Installed with homebrew formulae: https://github.com/Homebrew/homebrew-core/blob/2a83d48980d38d0a5cee735134c12ce63f4ff73b/Formula/librsvg.rb