Monspace font as squares

René J.V. Bertin rjvbertin at
Fri Nov 2 20:05:51 GMT 2018

On Friday November 02 2018 20:23:13 Friedrich W. H. Kossebau wrote:

> Is there any way to change the build windows font ?
>No, the font in the build windows is currently hardcoded to use the system's 
>fixed font (QFontDatabase::systemFont(QFontDatabase::FixedFont), which is 
>queried from the platform thene integration plugin.

Exactly, so the "fixed" font configured in the General section in ~/.config/kdeglobals will be used provided you have the plasma-integration plugin installed and/or set QT_QPA_PLATFORMTHEME=kde or else KDE_SESSION_VERSION=5 AND KDE_FULL_SESSION=true . In those cases application appearance is defined largely in ~/.config/kdeglobals which is read either by the plasma-integration plugin or by Qt's lightweight emulation in QGenericUnixTheme.

It looks though that you're running Ubuntu's default desktop which IIRC is Gnome-based. In that case Qt's QGenericUnixTheme will probably try to emulate a Gnome application (if none of the env. variables above are set) and get the default fonts from some other configuration file. The widget theme in use in your screenshot seems to be Fusion, and if so that supports the idea that you may not be reading settings from kdeglobals at all.

The easiest to tinker with this is by running `kcmshell5 fonts` (kcmshell5 is provided by the kf5 version of the kde-cli-tools package; the fonts KCM by the KF5 plasma-desktop package).
You can also run `qtdiag`; it shows which themes are available and which is in use; idem for the fonts. In my case:

  Platforms requested : kde,generic
            available : kde,gtk2,gtk3
  Styles requested    : qtcurve,breeze,oxygen,fusion,windows
         available    : Breeze,cleanlooks,gtk2,cde,motif,plastique,Oxygen,QtCurve,Windows,Fusion
  Icon theme          : Ciment, hicolor from /home/bertin/.local/share/icons,/usr/share/icons,/usr/local/share/icons,/opt/local/share/icons,/home/bertin/.icons
  System font         : "Segoe UI" 10

  General font : "Segoe UI" 10
  Fixed font   : "Ubuntu Mono" 10
  Title font   : "Lucida Sans" 10
  Smallest font: "Novarese Bk BT [bitstream]" 8


More information about the KDevelop mailing list