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

After commit 2e29a427ca, text is still less anti aliased

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.4.0 FF
    • None
    • Windows 11 22000.469 DPI 175% Screen 16-inch 2560*1600
    • Windows

      I think the bug is related to the line below

      https://github.com/qt/qtbase/blob/d54bb5324762ff24a012049dcf5b1b1520d9e9e8/src/gui/text/windows/qwindowsfontenginedirectwrite.cpp#L203

       I make a breakpoint on this line, and find fontDef.pixelSize is always 12 when point size of the font is 10 whatever DPI is changed to 120,144 or even 192.

      I try to find where fontDef.pixelSize is changed but failed.

      Can somebody tell me why the variable is always 12? I'm sure that it leads to fonts in some point sizes look still less anti aliased for after I make the text larger, the text is anti aliased.

       

      An screenshot is in attachment.

        1. image-2022-02-11-16-13-25-230.png
          6 kB
          Zhekai Li
        2. TestText.zip
          3 kB
          Zhekai Li
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            alphagocc Zhekai Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes