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

Regression: Qt5 doesn't use the GTK+ theme font variant

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.3.0, 5.3.1
    • Fix Version/s: None
    • Component/s: Widgets: Style Sheets
    • Labels:
      None
    • Environment:
      Arch Linux, up to date
      Environment variable: QT_STYLE_OVERRIDE='gtk'

      Description

      To get my GTK2 theme and font used in Qt4 apps, I just had to choose GTK+.
      Qt5 does use my GTK2 theme, but the font used is DejaVu Sans.

      However, I have specified DejaVu Sans Condensed as my font of choice; it appears in GTK+ and Qt4 apps, but not Qt5 apps.

      The problem is present in all of my Qt apps.
      Screenshot provided with smplayer 14.3.0 compiled against Qt4 then Qt5 to show the difference.

      Notes:
      Manually removing /usr/share/fonts/TTF/DejaVuSans.ttf forces it to use /usr/share/fonts/TTF/DejaVuSansCondensed.ttf
      Also attached: `strace cantata |& grep -i font` which shows DejaVuSans.ttf being loaded in the end.

        Attachments

        For Gerrit Dashboard: QTBUG-39643
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            calimeroteknik calimeroteknik
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes