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

QML Text rendering differences across different platforms

    XMLWordPrintable

Details

    Description

      I am seeing inconsistencies in the rendering of text between different platforms - see the image attachment.

      The image on the top left is produced in android, and as the red guide lines indicate, it differs from the "reference" windows output in terms of vertical position and angle of the italic style.

      It is the same font, the same code. Top padding and line height values are identical across the platforms.

      Rectangle { // scaled 300% in the image for visibility
        width: 100
        height: 50
        color: "grey"
        Text {
          x: 4
          y: 2
          font.family: sysfont
          font.pixelSize: 13
          width: contentWidth
          color: bgc
          text: "Type"
        }
        Text {
          x: 5
          y: 13
          font.family: sysfont
          font.pixelSize: 32
          font.italic: true
          font.letterSpacing: -1
          width: contentWidth
          color: topc
          style: Text.Sunken
          styleColor: bgc
          text: "Name"
        }
      }
      

      EDIT: It would seem the exception here is windows, since the output from android and linux is identical.

      EDIT2: Others confirmed they see no differences between rendering on macos, android and linux, so it is most likely a "windoze" thing.

      Also, the font in particular is called `Ubuntu Titling` - it is a free font. I haven't tested many fonts, but I am having the same problem with the "default" (as it not setting any) font.

      Attachments

        1. text2.png
          text2.png
          31 kB
        2. textt.png
          textt.png
          45 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            dgo dgo
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes