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

TextInput and Text elements draw certain fonts with slight vertical offset on Unix

    XMLWordPrintable

Details

    Description

      Download a free font from http://www.fontsquirrel.com/fonts/PT-Sans. Load it using FontLoader element with the attached QML file "fonterror.qml". Contrary to other platforms, on Linux (tested on Ubuntu and OpenSuse) TextInput and Text element draws the font few pixels above the correct position. If the element uses bitmap caching (for example styled Text), the upper part of the font gets clipped.

      Attachments

        1. fontclippingissue.qml
          0.9 kB
        2. fontclippingissue2.qml
          0.5 kB
        3. fonterror.qml
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes