[BZ#770298] [Wikimedia] Incorrect kerning in SVG rasterization when using small font sizes
Submitted by rka..@..org
Link to original bug (#770298)
Description
Created attachment 334032 comparison showing bug
The text in these two SVGs should render identically:
- https://commons.wikimedia.org/wiki/File:Rsvg_text_rendering_test_1.svg
- https://commons.wikimedia.org/wiki/File:Rsvg_text_rendering_test_2.svg However the text in the first has screwed up kerning, while the text in the second doesn't. The only difference between the two SVGs is that the first one used a small font size (3px) which is scaled up by the viewBox, while the second one uses a larger font size (24px) and is not scaled. In Firebox's native SVG renderer, they both look fine.
Tested with librsvg 2.40.16.
Attachment 334032, "comparison showing bug":