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

qt.text.font.match: returning box engine since 6.7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 6.7.2
    • GUI: Font handling
    • None
    • Qt 6.7.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by OpenBSD Clang 16.0.6) on "xcb"
      OS: OpenBSD 7.6 [openbsd version 7.6]
    • Other

    Description

      I am the Qt OpenBSD maintainer and I am trying to upgrade the Qt ecosystem from 6.6.3 to 6.7.2. Unfortunately I ran into the following problem where I can't get any further without your help. I only see boxes instead of fonts/texts. When I look at the whole thing in the debug I realise why:

      qt.text.font.db: Populating font database
      qt.text.font.db: Adding font: familyName "Serif" stylename "" weight 400 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Serif" stylename "" weight 400 style QFont::StyleItalic pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Serif" stylename "" weight 400 style QFont::StyleOblique pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Sans Serif" stylename "" weight 400 style QFont::StyleNormal pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Sans Serif" stylename "" weight 400 style QFont::StyleItalic pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Sans Serif" stylename "" weight 400 style QFont::StyleOblique pixelSize 0 antialiased true fixed false
      qt.text.font.db: Adding font: familyName "Monospace" stylename "" weight 400 style QFont::StyleNormal pixelSize 0 antialiased true fixed true
      qt.text.font.db: Adding font: familyName "Monospace" stylename "" weight 400 style QFont::StyleItalic pixelSize 0 antialiased true fixed true
      qt.text.font.db: Adding font: familyName "Monospace" stylename "" weight 400 style QFont::StyleOblique pixelSize 0 antialiased true fixed true
      qt.text.font.match: QFontDatabasePrivate::match
        request:
          family: Noto Sans [-- any --], script: 2
          styleName: -- any --
          weight: 400, style: 0
          stretch: 0
          pixelSize: 13
          pitch: *
      qt.text.font.match:   NO MATCH FOUNDqt.text.font.match: returning box engine                                                                                                                       
      qt.text.font.match: QFontDatabasePrivate::match
        request:
          family: -- first in script -- [-- any --], script: 2
          styleName: -- any -- 
          weight: 400, style: 0
          stretch: 0
          pixelSize: 13
          pitch: *
      qt.text.font.match:   REMARK: looking for best foundry for family 'Monospace' [1]
      qt.text.font.match:           looking for matching style in foundry '-- none --' 3
      qt.text.font.match:           best style has distance 0x0
      qt.text.font.match:           found smoothly scalable font (13 pixels)
      qt.text.font.match:           found a match: score 0 best score so far ffffffff
      qt.text.font.match: returning box engine
       

      ‘returning box engine’ but why? I also don't understand why the fontdb is so small. Under 6.6.3 there are much more entries.

       

      Under OpenBSD there are two fonts dirs: /usr/X11R6/lib/X11/fonts/ (from X11) and /usr/local/share/fonts/ (3rdParty / packages)

       

      CMake build flags: https://github.com/sizeofvoid/wip-ports/blob/master/x11/qt6/qtbase/Makefile#L118

       

       

      I would be very grateful for support!

       

      Attachments

        1. 2024-10-02_18-00.png
          2024-10-02_18-00.png
          2.03 MB
        2. kcolorschemeeditor.log
          687 kB
        3. qtdiag-qt6.log
          11 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            rsadowski Rafael Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes