Image viewer renders SVG improperly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eog (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Image viewer fails to render SVG images with transform matrices that are no equal.
Image fragment that fails:
<svg viewBox="-50 -50 200 200" xmlns="https:/
<text xml:space=
>
<tspan sodipodi:
>
This text has been highly squashed, and should stay in the inner box.
</tspan>
</text>
</svg>
Expected result: text that has been scaled to fit in a box
Actual result: individual glyphs are appropriately squished, but letterspacing is not. The letterspacing used appears to be the full-size glyph width in the font.
In another test, where the text is stretched, the individual glyphs are appropriately stretched, but letterspacing is not. The letterspacing used appears to be the full-sized (unstretched) glpyh width in the font.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: eog 3.36.3-0ubuntu1
ProcVersionSign
Uname: Linux 5.15.0-101-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri Mar 29 17:28:27 2024
InstallationDate: Installed on 2021-06-13 (1020 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: eog
UpgradeStatus: No upgrade log present (probably fresh install)
In further tests, I find that Chrome, Firefox, and LibreOffice Draw renders the image correctly. Of course, the image was created in InkScape, so it's rendering is also as expected.
Dia displays an error when loading the image. Document Viewer: SVG not supported. GIMP screws up exactly the same way. ImageMagick doesn't even try to render the text.