qt4-qtconfig does not save font settings

Bug #298781 reported by Munchkinguy
106
This bug affects 22 people
Affects Status Importance Assigned to Milestone
qt4-x11 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

If you run qtconfig-qt4 and then make any changes to the font settings, they are never applied. If you open qtconfig again, the old font settings will be there. It is not possible to change them.

Revision history for this message
Dmitry Tantsur (divius) wrote :

I can confirm it. The problem appears with Gtk+ theme, if you change to another theme (e.g cleanlooks) it'll disappear.

Revision history for this message
Dean Moreton (dean-moreton) wrote :

Confirmed in Jaunty with latest updates, the default size of 13 looks huge on my laptop, so apps like VLC and Skype are pretty ugly, but the Qt 4 Settings tool won't apply my font size change or save it.

Revision history for this message
pheeror (pheeror) wrote :

Same here - after upgrading from intrepid.

Changing theme from GTK+ appears to be a functional workaround.

Revision history for this message
pheeror (pheeror) wrote :

Well, it is obviously pretty good thing that "GTK+" QT theme uses the font settings from GTK.

The problem is that antialiasing properties set by gnome-appearance-properties are not shared between QT and GTK even if "GTK+" theme. So, even though GTK+ theme sets the right font, it can look very ugly. When this is solved, there is no need to "fallback" to trying to change the font in qtconfig.

btw, this is my ~/.fonts.conf for antialising:grayscale and hinting:full
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font">
 <edit name="hintstyle" > <const>hintfull</const> </edit>
 <edit name="rgba" mode="assign"><const>none</const></edit>
 </match>
</fontconfig>

http://freedesktop.org/wiki/ScreenFontSettings
http://www.gnome.org/~bmsmith/gconf-docs/C/gnome.html

Revision history for this message
Mirco Müller (macslow) wrote :

Under Ubuntu 9.04 using the qt4-engine-gtk2 GNOME's font-rendering options (mainly hinting) are not taken into account by the qt4 rendered UI. Attached is a screenshot showing qt4-rendered VirtualBox UI and gtk+-rendered gnome-appearance. You can clearly see the text rendered in the qt4-rendered dialog (on the left) being "thinner" than the gtk+-rendered dialog (on the right).

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qt4-x11 (Ubuntu):
status: New → Confirmed
Revision history for this message
Anton (anton7811) wrote :

Ubuntu 12.04, qt4-qtconfig 4:4.8.1-0ubuntu4.4. The problem is still present.

Revision history for this message
Oleksandr Shybystyi (o.shybystyi) wrote :
Revision history for this message
Mark Rijckenberg (markrijckenberg) wrote :

This bug still exists in 2015... The problem appears with Gtk+ theme. If you change to another theme (e.g cleanlooks) this issue will disappear. (See post #1)

My PC setup:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu Xenial Xerus (development branch)"

Using qt version 4.8.6 and the lxqt desktop in Ubuntu 16.04 (pre-release version).

~ cat /var/log/Xorg.0.log | head 23:02:09
[ 10.112]
X.Org X Server 1.17.3
Release Date: 2015-10-26
[ 10.112] X Protocol Version 11, Revision 0
[ 10.112] Build Operating System: Linux 3.19.0-33-generic x86_64 Ubuntu
[ 10.112] Current Operating System: Linux gamerpc 4.2.0-19-generic #23-Ubuntu SMP Wed Nov 11 11:39:30 UTC 2015 x86_64
[ 10.112] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.2.0-19-generic.efi.signed root=UUID=2c939427-e3f8-462d-baab-d23d2045529e ro quiet splash vt.handoff=7
[ 10.112] Build Date: 25 November 2015 04:17:13PM
[ 10.112] xorg-server 2:1.17.3-2ubuntu2 (For technical support please see http://www.ubuntu.com/support)
[ 10.112] Current version of pixman: 0.33.4

~ apt-cache show lxqt-common 23:03:56
Package: lxqt-common
Status: install ok installed
Priority: optional
Section: x11
Installed-Size: 4610
Maintainer: LXQt Packaging Team <email address hidden>
Architecture: all
Version: 0.10.0+201511240226~ubuntu16.04.1
Recommends: oxygen-icon-theme

Revision history for this message
Ufos92 (ufos92) wrote :

Still valid.
Running Xubuntu 14.04.03, quite a lot of applications by default have GTK+ theme, now my qtconfig isn't able to change the font for them. Is there a fix or a workaround?

Revision history for this message
Daniel Hurtado (dhurtado) wrote :

Sill valid in 16.04, just as described above.

Revision history for this message
meequz (meequz) wrote :

Still present for me, at least for Qt5 apps. Ubuntu Mate 16.04, Nvidia drivers 340.96.
8 years, lol.

Revision history for this message
Dmitry (insight+) wrote :

Solution on Xubuntu 16.04 x64:
After upgrade from 14.04 to 16.04 my default font was 'Droid Sans'.
But that font wasn't present anymore.

1. sudo fc-cache -f -v (possible affect this, it show some messages about invalid records)
2. Changing default font in 'Apperance' settings to 'Noto Sans'

After that it's possible to change font in GTK theme to system font (Noto Sans).
qtconfig window shows the wrong font style but qt apps are using the correct one.

Revision history for this message
widon1104 (widon1104) wrote :

still present in ubuntu mate 16.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.