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

Default font engine: same font and text rendered very differently on secondary display

    XMLWordPrintable

Details

    • Windows
    • 2e29a427ca2127ff7aff23049c65881d3c55bb40

    Description

      On Windows text seem quite different on different displays if the displays have different scale factors. For example if main display has the scale factor 150% and secondary display has the scale factor 100%, font will look off on the secondary display.

      The problem seems to be solved by:

      • Using the same scale factor for both displays
      • Using freetype font engine

      The difference is clearer with some fonts than others. For example with https://fonts.google.com/specimen/M+PLUS+Rounded+1c the difference is very easy to spot. Especially the upper part of some letters stand out a lot when compared to the same text on the main display and even more so with freetype font engine.

      Steps to reproduce the problem:

      • Ensure the displays have different scale factors
      • open designer
      • load the attached .ui in the designer
      • move designer window (or preview window) from one screen to another while comparing the text

      Attachments

        1. notepad zoom.png
          33 kB
          Mårten Nordheim
        2. good.png
          10 kB
          Mårten Nordheim
        3. freetype_secondary_display.png
          10 kB
          Miika Pernu
        4. freetype_main_display.png
          14 kB
          Miika Pernu
        5. default_secondary_display.png
          7 kB
          Miika Pernu
        6. default_main_display.png
          11 kB
          Miika Pernu
        7. bad.png
          6 kB
          Mårten Nordheim
        8. AntialiasTest.ui
          1 kB
          Miika Pernu
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            manordheim Mårten Nordheim
            miikapernu Miika Pernu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes