linuxmint / xviewer

A generic Image viewer
GNU General Public License v2.0
75 stars 37 forks source link

Text in SVG images not displayed correctly #161

Closed tfpf closed 2 years ago

tfpf commented 2 years ago
 * Xviewer version 3.0.2
 * Distribution Linux Mint 20.2 (Uma)

Issue Xviewer does not correctly render SVGs containing text tags if a list of coordinates is specified.

Steps to reproduce Save the following text to a file, say image.svg.

<svg width="100" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1">
    <rect width="100%" height="100%" fill="#EEEEEE" />
    <text x="0 33 67" y="18">Foo</text>
</svg>

Open it using Xviewer.

Expected behaviour A_firefox_is_correct

Actual Behaviour B_xviewer_is_wrong

Other information

programmer-ceds commented 2 years ago

As you say Firefox takes note of the list of x coordinates (as does Inkscape) but xviewer, pix and GIMP (V2.10.30 and V2.99.10) do not. (Checks done on Mint 20.3 Cinnamon with xviewer V3.2.4)

However, this appears to be a problem in librsvg (which both xviewer and GIMP both use). See the following fault report:

https://gitlab.gnome.org/GNOME/librsvg/-/issues/183

This issue should be closed as it isn't specifically an xviewer problem.

tfpf commented 2 years ago

Great point; I didn't think of comparing how other tools like Pix render it.

Closing because (as pointed out) it is a problem with the library.