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

Windows font database doesn't report supported writing systems for non-TrueType fonts on non-Latin locale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.1.0
    • 4.8.0, 5.0.0
    • GUI: Font handling
    • None
    • windows
    • 03875c0ba56cb7f95f56a8a7901603e790f066d3

    Description

      According to EnumFontFamExProc docs, "The ENUMLOGFONTEX structure includes the localized name of the script (character set)" (see "Remarks" section at http://msdn.microsoft.com/en-us/library/windows/desktop/dd162618(v=vs.85).aspx).
      Thus, WritingSystem writingSystemFromScript(const QString &scriptName) helper always returns QFontDatabase::Any writing system, since the comparison is done for non-localized character set names.

      i.e.
      [code]
      if (scriptName == QStringLiteral("Cyrillic"))
      return QFontDatabase::Cyrillic;
      [/code]
      but scriptName is "Кириллический"

      Attachments

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

        Activity

          People

            ritt.ks Konstantin Ritt
            ritt.ks Konstantin Ritt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes