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

[REG 5.3->5.4] OS X: Unnecessary error messages about missing fonts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.4.0
    • None
    • OS X 10.9.5
    • macOS

    Description

      Qt 5.4.0 introduced handling of Apple's fallback font list or at least it introduced a warning message if the lookup of fonts in that list fails. This means that each and every application prints a list of repeated error messages about fonts that the user might have removed because they're of no use to him. In my case:

      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "BanglaSangamMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "SinhalaSangamMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "TeluguSangamMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "STSongti-SC-Regular"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "STSongti-TC-Regular"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "BanglaMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "SinhalaMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "TeluguMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "BanglaSangamMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "SinhalaSangamMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "TeluguSangamMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "DFKaiShu-SB-Estd-BF"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "BanglaMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "SinhalaMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "TeluguMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "DFKaiShu-SB-Estd-BF"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "BanglaMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "SinhalaMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "TeluguMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "Baghdad"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "Ayuthaya"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "BanglaSangamMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "SinhalaSangamMN"
      QCoreTextFontDatabase: Failed to resolve family name for PostScript name  "TeluguSangamMN"
      

      The question why Apple doesn't implement a locale-specific fallback font list aside, Qt doesn't need to warn about the lookup failure at all because these fallback fonts don't appear to serve any purpose.

      The culprit is a qWarning() statement around line 449 in qtbase/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm .
      I've attached a patch that activates the warning only when Qt is in debug build.

      Attachments

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              rjvbertin René Bertin
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes