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

qt_getCanonicalFontNames match the wrong preferredName

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.0
    • GUI: Font handling
    • None
    • Windows

    Description

      I have a font with name records like this:

      platformID languageID nameID name
      3(windows) 1033(English) 1(Family) aaa
      3 1033 16(Preferred Family) bbb
      3 2052(Chinese, System lanugage) 1 ccc

      The function "qt_getCanonicalFontNames" return the english Preferred Family Name "bbb", but Windows accepted "ccc" when calling CreateFont.

      It seems that Windows use family name in these order:

      1. System Language Preferred Family
      2. System Language Family
      3. English Preferred Family
      4. English Family

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            darknesswind boyun liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes