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

Regression: Qt5 doesn't handle Arial on Windows 7 well

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.4.0
    • 5.3.1
    • GUI: Font handling
    • None
    • Windows 7 pro x64

    Description

      Set the QPlainTextEdit font to Arial, and Thai characters are rendered much smaller than English characters. The attached screen shots are from running the attached application under Qt 4.8.6 and Qt 5.3.1, both compiled from source, on the same Windows 7 pro x64.

      The same issue occurs when we paint text on a QGraphicsItem using a QPainterPath: it's fine under Qt 4.8.6, but Thai is very small under Qt 5.3.1.

      FWIW, the default font "MS Shell Dlg 2" displays the English and Thai the same size under Qt 5.3.1 for both QPlainTextEdit and QGraphicsItem, so it seems the problem is specific to certain kinds of fonts.

      Qt 4.8.6 was configured with:

      configure -plugin-sql-sqlite -no-qt3support -developer-build -opensource -qtlibinfix _fmosoft -platform win32-msvc2008

      Qt 5.3.1 was configured with:

      configure -prefix %CD%\qtbase -developer-build -opensource -no-c++11 -nomake tests -no-compile-examples -no-opengl -no-angle -plugin-sql-sqlite -platform win32-msvc2008 -confirm-license -qtlibinfix _fmosoft -make-tool jom

      Since we ported to Qt 5, this issue is preventing us from releasing our application.

      Attachments

        1. arial_thai_app.zip
          1 kB
          David Burson
        2. qt486.PNG
          14 kB
          David Burson
        3. qt486-arial-thai-only.PNG
          12 kB
          David Burson
        4. qt531.PNG
          11 kB
          David Burson
        5. qt531-Arial-thai-only.PNG
          12 kB
          David Burson
        6. qtbug40372.jpg
          160 kB
          Friedemann Kleint
        7. qtbug40372.zip
          2 kB
          Friedemann Kleint
        8. qtbug40732_notepad.jpg
          21 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ritt.ks Konstantin Ritt
            davidburson David Burson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes