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

TextEdit font rendering does not handle the Scale transform properly

    XMLWordPrintable

Details

    Description

      When using the Scale transform, Text elements handle rendering of text in a nice way (taking advantage of the extra pixels). In comparison, the TextEdit element does not do this.

      A simple example that clearly shows the effect follows. I have also attached a screenshot of what it looks like on my system.

      import QtQuick 1.0
      
      Rectangle {
          property real displayScaling
          id: screen
          displayScaling: 3
          width: 160*displayScaling; height: 160*displayScaling
          transform: Scale {
              xScale: displayScaling
              yScale: displayScaling
          }
      
          Text {
              x: 0
              y: 0
              width: 160
              height: 80
              font.pixelSize: 11
              text: "Here is some text that is in a Text element. Notice how it is smoothly rendered."
              wrapMode: Text.Wrap
          }
          TextEdit {
              x: 0
              y: 80
              width: 160
              height: 80
              font.pixelSize: 11
              text: "Here is some text that is in a TextEdit element. Notice how it is not smoothly rendered."
              wrapMode: TextEdit.Wrap
          }
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            lramsay Lincoln Ramsay (closed Nokia identity) (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes