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

Roboto font rendering issue

    XMLWordPrintable

Details

    • 131eee5cd7547ddb658d6337e1877da3d73b3158

    Description

      I have some font rendering problems on Mac OSX when using e.g. the Roboto Thin font. The font is rendered with incorrect letter spacing - the letters touch each other. Notice the I as well, how it's not rendered correctly in the middle between the H and the N.

      Using the following code I get the result in the first screenshot.

      import QtQuick 2.3
      Item {
          width: 250
          height: 50
          FontLoader {
              id: myFont
              source: "Roboto-Thin.ttf"
          }
          Text {
              font.pixelSize: 40
              font.family: myFont.name
              text: "THIN FONT"
          }
      }
      

      Using the same font in TextEdit I get the result in the second screenshot. This is how the font should look.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              madsdk Mads D. Kristensen
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes