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

QSvgRenderer renders the first line instruction of a path blurry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.6.0
    • SVG Support
    • None
    • OpenSUSE Leap 15.5, GCC 13.2.1
    • Linux/X11

      QSvgRenderer renders the first line instruction of a path blurry, if the attribute 'stroke-linecap: square' is set. To reproduce the effect, open the attached 'arrrows.svg' with 'svgviewer' (qtsvg/tests/manual/examples/svgviewer) and select renderer 'Native'. You see two arrows: The upper is blurry, the lower is rendered correctly. The difference is a workaround at the path of the lower one: A 1-pixel hidden dummy line at the beginning. See the attached screenshot 'Native.png'.

      The arrows are rendered correctly, if the zoom is set to 200% or more.

      The arrows are rendered correctly, if the renderer 'OpenGL' is selected (screenshot 'OpenGL.png').

        1. arrows.svg
          0.4 kB
        2. Native.png
          Native.png
          3 kB
        3. OpenGL.png
          OpenGL.png
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            matthias_rauter Matthias Rauter
            wschenke Winfried Schenke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes