Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-46883

QSvgRenderer does not handle transform="rotate(...)" x and y properly.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.9.2
    • 5.3.2, 5.4.1
    • SVG Support
    • None
    • 0fcd0160662941a9ba800b36671e88d82790bd95

    Description

      I have a simple application that renders an SVG into a PNG. I found that when I added rotated texts they would not be shown. Deeper digging took me to find out that in transform="rotate(angle, x, y)" the center is not handled properly by Qt. I attach an example SVG that looks the same on webkit, inkscape, rsvg-convert converts well but Qt doesn't.

      Attachments

        1. simple.svg
          0.4 kB
        2. test4.svg
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            francescortiz Francesc Ortiz
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes