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

REG [within 5.9]: Windows font engine rendering broken when using message box with rich text

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.0 Beta 4
    • 5.9.0 Beta 3
    • GUI: Font handling
    • None
    • Win 10 64bit, MSVC2015 U3

    Description

      Normal rendering, no high DPI scaling involved. Freetype is not affected.

      QMessageBox::information(...."<html><head/><body><p>bla <b> bold bla</b> blub"
                             "<i>italic</i>blob</p></body></html>");
      

      Notably shows in Qt Creator 'File changed on disk' dialog.

      QLabel(0x270dbf623a0, name="qt_msgboxex_icon_label") "" QFont( "Segoe UI,9,-1,5,50,0,0,0,0,0" )
      QLabel(0x270dbf62250, name="qt_msgbox_label") "<html><head/><body><p>bla <b> bold bla</b> blub<i>italic</i>blob</p></body></html>" QFont( "Segoe UI,9,-1,5,50,0,0,0,0,0" )
      

      Appears to be Vista style only. This is then related to the QWindowsVistaStyle::drawPrimitive() drawing a white theme panel on message boxes at src\widgets\styles\qwindowsvistastyle.cpp:788 and caused by some alpha blending issue.

      Introduced by "Cleanup rgb32 text-blending code path" d160809015e49d6435dc876135b88f17af4f8008 https://codereview.qt-project.org/#/c/184708/

      Attachments

        1. qtbug60562_diag.diff
          5 kB
        2. qtbug60562_log.txt
          6 kB
        3. qtbug60562.jpg
          qtbug60562.jpg
          10 kB
        4. qtbug60562.zip
          1 kB
        5. sample.png
          sample.png
          12 kB

        Issue Links

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

          Activity

            People

              allan.jensen Allan Sandfeld Jensen
              kleint Friedemann Kleint
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes