Incorrect text spacing when transform is not 1:1
Reported downstream:
- https://phabricator.wikimedia.org/T36947#7062325
- https://phabricator.wikimedia.org/T205776#7072788
- https://phabricator.wikimedia.org/T142908#7072828
rsvg-version 2.50.5 and rsvg-version 2.51.1
https://commons.wikimedia.org/wiki/File:Fonttest-Kerning.svg and https://commons.wikimedia.org/wiki/File:Fonttest-Kerning_alsoCorrect.svg
svg | Wikimedia librsvg 2.40 | local 2.51.1 |
---|---|---|
file | ![]() |
![]() |
source: https://commons.wikimedia.org/wiki/File:Fonttest-Kerning.svg
author: https://commons.wikimedia.org/wiki/User:Hk_kng
license: Public Domain
https://commons.wikimedia.org/wiki/File:T205776.svg
imho a duplicate of T36947, which is not a subtask of Updating librsvg, but maybe a subtask of reevaluating svg-render T40010
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="200" viewBox="0 0 5 1">
<text x="0" y="1" font-family="DejaVu Sans" font-size="1">ਸਧਾਰਨ ਵਾਕ</text>
</svg>
svg | librsvg2.40 (WikiMedia) | librsvg 2.50 (Fedora 34) | librsvg 2.51 (Fedora 34) | resvg (Fedora 34) | inkscape (Fedora 34) | batik (Fedora 34) |
---|---|---|---|---|---|---|
file | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
source https://commons.wikimedia.org/wiki/File:T205776.svg
author https://commons.wikimedia.org/wiki/User:Stalinjeet_Brar
license https://creativecommons.org/licenses/by-sa/4.0
https://commons.wikimedia.org/wiki/File:T142908.svg
The issue has a regression before librsvg 2.51 for https://commons.wikimedia.org/wiki/File:T142908.svg , imho duplicate of T36947
svg | Commons | librsvg 2.50 | librsvg 2.51 | resvg | inkscape | batik |
---|---|---|---|---|---|---|
file | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
source https://commons.wikimedia.org/wiki/File:T142908.svg
author https://commons.wikimedia.org/wiki/User:Stephan_Kulla