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

Roboto Light font doesn't render nicely on Linux when QML Item::scale isn't 1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.5.0 RC
    • 5.4.1, 5.4.2
    • GUI: Font handling
    • None

    Description

      The issue is in Qt 5.4.1 (see top line of Qt5.4.1.png i.e. "light") and has been fixed in 5.5.0-beta (compare with Qt5.5.0.png), but is still in today's (May 19) 5.4.2 snapshot:
      http://download.qt.io/snapshots/qt/5.4/5.4.2/2015-05-19_131/qt-opensource-linux-x86-5.4.2_2015-05-19_13-47-35-131.run

      It does not occur on Mac nor Windows (nor on Linux with scale: 1). Ubuntu 14.04 is where I see it.

      It can be reproduced with the attached fonts.zip file (which includes three .ttf files) by running FontTest.qml in qmlscene (and resizing the qmlscene window via mouse drag makes the issue even more apparent):

      import QtQuick 2.4
      
      Column{
          scale: 0.9
          
          FontLoader{source: 'Roboto-Light.ttf'}  
          FontLoader{source: 'Roboto-Regular.ttf'}
          FontLoader{source: 'Roboto-Bold.ttf'}   
      
          Text{text: font.family;  font{pixelSize: 36;  family: 'light'}}    
          Text{text: font.family;  font{pixelSize: 36;  family: 'regular'}}    
          Text{text: font.family;  font{pixelSize: 36;  family: 'bold'}}      
      }
      

      You shouldn't need them, but the original fonts can be obtained from here:
      https://www.google.com/fonts/download?kit=hY6_qqcqX_JNp8IlbByiXfesZW2xOQ-xsNqO47m55DA

      I modified the .ttf files' font family names in fonts.zip with FontForge due to bug 30851
      http://fontforge.github.io/en-US/downloads/

      Attachments

        1. fonts.zip
          291 kB
        2. Qt5.4.1.png
          Qt5.4.1.png
          8 kB
        3. Qt5.5.0.png
          Qt5.5.0.png
          9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            chriscortopassi Chris Cortopassi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes