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

QSvgGenerator generates a different svg depending on the Windows Display Scale Factor

XMLWordPrintable

    • Windows

      Generated output varies based on screen scale factor.
      For example 100%:

      <text fill=\"\" fill-opacity=\"\" stroke=\"none\" xml:space=\"preserve\"
           x=\"1\" y=\"11\" 
         font-family=\"Segoe UI\" font-size=\"9\" font-weight=\"400\" font-style=\"normal\" \n > </text>
      

      vs 150%:

      <text fill=\"\" fill-opacity=\"\" stroke=\"none\" xml:space=\"preserve\" 
         x=\"1\" y=\"10.7031\"
          font-family=\"Segoe UI\" font-size=\"9\" font-weight=\"400\" font-style=\"normal\" \n > </text>
      

      Easiest to reproduce with one display connected so no need to guess which display scale to adjust.

        1. QTBUG139120.7z
          0.9 kB
          Tommi M. Tauriainen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hatemelkharashy Hatem ElKharashy
            tommimtauriainen Tommi M. Tauriainen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes