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

Roboto font rendering issue

XMLWordPrintable

    • 131eee5cd7547ddb658d6337e1877da3d73b3158

      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.

        1. Screen Shot 2015-04-13 at 16.21.50.png
          25 kB
          Mads D. Kristensen
        2. Screen Shot 2015-04-13 at 16.25.31.png
          38 kB
          Mads D. Kristensen
        3. Screen Shot 2015-04-15 at 11.01.09.png
          23 kB
          Mads D. Kristensen
        4. FontTest.tar.gz
          89 kB
          Kimmo Leppälä
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes