You are not logged in.

#1 2012-01-30 05:02:06

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Very bad fonts in Qt applications under GNOME

I've recently reinstalled Arch and have been having a lot of issues with the fonts in Qt applications under GNOME. For example, with the kernel xconfig (Qt 4) program:

http://i.imgur.com/QRv8L.png

compared with the GTK gconfig:

http://i.imgur.com/iZIfW.png

This happens with every Qt 4 applications and with every font I've tested (Cantarell, Sans, Ubuntu font family). I'm also using the Infinality FreeType 2 patches, but this is completely reproducible in the stock freetype2 package. Does any one know what's going on?

EDIT: This is not reproducible under KDE.

Last edited by chenxiaolong (2012-01-30 05:02:24)

Offline

#2 2012-01-30 06:01:49

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Very bad fonts in Qt applications under GNOME

I do have this issue. Hadn't looked for solutions, yet.

Edit:
i use infinality.I had this issue with cairo-ubuntu too.

Last edited by hadrons123 (2012-01-30 06:02:40)


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#3 2012-01-30 06:29:07

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Very bad fonts in Qt applications under GNOME

It's just using a *wrong* font.

qtconfig changes ~/.config/Trolltech.conf, but the settings are ignored if you choose the "GTK+" (or "Default") GUI style in the Appearance tab - so use e.g. "Cleanlooks" instead.

This is with qt 4.7.4

Offline

#4 2012-01-30 06:57:57

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Very bad fonts in Qt applications under GNOME

@brebs: The problem with that is that I need to use both KDE and GNOME and so I wouldn't want to have Qt locked to a certain theme. I also do not have this problem on a fully upgraded Arch system that I installed before.

EDIT: After creating a new user (for a fresh configuration), it seems that only the Ubuntu font has this problem.

Last edited by chenxiaolong (2012-01-30 07:02:27)

Offline

#5 2012-01-30 08:40:18

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,394

Re: Very bad fonts in Qt applications under GNOME

Check if this helps, maybe related, maybe not:
https://bbs.archlinux.org/viewtopic.php … 1#p1034441


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#6 2012-02-28 17:44:27

Paanini
Member
From: Mumbai
Registered: 2011-12-29
Posts: 29
Website

Re: Very bad fonts in Qt applications under GNOME

I have the exact same problem. Here are my screenshots :

This is for Gconf-editor (a Gtk app) - http://i.minus.com/ibph3NcXbNgEgw.png
This is for Clementine (a Qt app) - http://i.minus.com/iQo0TZIOlrvZe.png

I don't have a ~/.fonts.conf file, and I'm using the Ubuntu font family from the AUR. Can anyone help ?

EDIT : I managed to get slightly better fonts in Qt apps by changing the Antialiasing to RGBA and the hinting to Slight.
This is the result : http://i.minus.com/iRpPwsdN6S8v3.png which is a definite improvement.
The fonts are much smoother, though they still have the 'bold' feel to them.

Last edited by Paanini (2012-02-28 18:08:32)


Find me on    :     Twitter     Tumblr     Blogger

Offline

#7 2012-04-12 21:59:37

LegionSB
Member
Registered: 2012-01-26
Posts: 7

Re: Very bad fonts in Qt applications under GNOME

I have this issue as well.

Using the -ubuntu builds of fontconfig/freetype/cairo/etc.

The image below says it all:

kdefonts.png

I get these bolded fonts in all Qt apps, except ones statically linked like virtualbox-bin.

I have tried various anti-aliasing settings. If I set hinting to Medium or Full, then the fonts are no longer bold, but they are also quite a mess.

I don't understand why my fonts simply will not reflect the way they look right there where the red arrow is pointing.

Offline

#8 2013-05-11 00:45:50

ulidtko
Member
Registered: 2013-05-11
Posts: 10

Re: Very bad fonts in Qt applications under GNOME

OK guys, wiping out ~/.config/Trolltech.conf resolved a very similar problem for me.

Over the years of extended usage that file on my system grew to 900+ lines and 100KiB+ in size. It was filled with some fancy versioned "factory" and "plugin" caches, which, I guess, never were even supposed to be cleared.

So once I removed that file, it was regenerated to a much smaller one (just 45 lines in length) on the next launch of qtconfig, and my problematic Qt program never had those weird theme issues again.

Also, I've met this theme issue quite a few times already, and every time the application used its own bundled Qt dlls or even statically compiled-in Qt (doh). I.e. each time I saw an Qt application appearing in some specific awkward dark-backround yellow-fonts-with-wrong-faces theme with broken contrast in many places – I soon discovered that that particular Qt program didn't use the system Qt libs (which probably have some distro-wide patches/configuration applied). A prominent example of Google Earth comes to mind from several years ago.

Offline

Board footer

Powered by FluxBB