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

QSvgRenderer does not support baseline-shift nor dy attributes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.9.0
    • SVG Support
    • None

    Description

      Example

      A complete example SVG file containing the unsupported tags is added as an attachment: test.svg.

      The relevant lines are:

      <text fill="#000000" x="140" y="270" font-size="12" text-anchor="middle" dy="12" font-family="Helvetica">40</text>

      <text fill="#000000" x="186" y="270" font-size="12" text-anchor="middle" baseline-shift="-12" font-family="Helvetica">60</text>

      The SVG file should be rendered as:

      But it is wrongly rendered as, i.e. ignoring the dy and baseline-shift attributes:

      It is clearly visible that the x axis tick labels are printed too high.

      Attachments

        1. test.png
          test.png
          29 kB
        2. test.svg
          8 kB
        3. testWrong.png
          testWrong.png
          49 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            m3197d - -
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes