Text in pattern upside-down after PDF import
Summary:
(Maybe related to or same as #2615, but even if so, this is a much simpler demo.)
After importing pattern.pdf via "Internal import", Inkscape shows the text upside down.
The import preview is correct. If importing via Poppler/Cairo, it's correct. Other viewers I tried (okular, ImageMagick, firefox, chromium) also render it correctly.
pattern.pdf was generated with rsvg-convert version 2.50.3 or 2.52.5:
rsvg-convert -f pdf -o pattern.pdf pattern.svg
pattern.svg is rendered correctly by all programs I tried, including Inkscape.
Steps to reproduce:
- open Inkscape
- import pattern.pdf
What happened?
Text shown upside-down.
What should have happened?
Text shown upright.
Sample attachments:
pattern.svg:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100">
<pattern width="100" height="100" patternUnits="userSpaceOnUse" id="t">
<text font-family="sans" font-size="50" y="50">Test</text>
</pattern>
<rect width="100" height="100" fill="url(#t)"/>
</svg>
Version info
Inkscape 1.0.2 (e86c870879, 2021-01-15)
Pango version: 1.46.2
also:
Inkscape 1.1.2 (0a00cf5339, 2022-02-04)
GLib version: 2.72.1
GTK version: 3.24.33
glibmm version: 2.66.2
gtkmm version: 3.24.5
libxml2 version: 2.9.13
libxslt version: 1.1.34
Cairo version: 1.16.0
Pango version: 1.50.6
HarfBuzz version: 2.7.4
Poppler version: 22.02.0
OS version: Ubuntu 22.04.1 LTS
also:
Inkscape 1.3-dev (e533fbf, 2022-10-11)
GLib version: 2.64.6
GTK version: 3.24.20
glibmm version: 2.64.2
gtkmm version: 3.24.2
libxml2 version: 2.9.10
libxslt version: 1.1.34
Cairo version: 1.16.0
Pango version: 1.44.7
HarfBuzz version: 2.6.4
OS version: Ubuntu 20.04.5 LTS
Edited by Nathan Lee