Apply font configurations to Qt applications also

Bug #346364 reported by Charles
16
Affects Status Importance Assigned to Milestone
qt4-x11 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

If I use Gnome, tweak my fonts (choose a specific font, make it antialiased with subpixel hinting with slight hinting and RGB), my fonts look good in GTK applications. However, if I install a Qt application such as Skype, my fonts don't look as good. This is because Qt applications don't find information regarding fonts settings, and therefore, use a default font-rendering configuration. A simple fix to this is, when changing font configurations in Gnome, creating also a ~/.fonts.conf file with the information for Qt applications. For instance:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font">
  <edit name="rgba" mode="assign">
   <const>rgb</const>
  </edit>
 </match>
 <match target="font">
  <edit name="rgba" mode="assign">
   <const>rgb</const>
  </edit>
  <edit name="hinting" mode="assign">
   <bool>true</bool>
  </edit>
  <edit name="hintstyle" mode="assign">
   <const>hintslight</const>
  </edit>
 </match>
</fontconfig>

This way, font rendering in Qt applications is always the same as in GTK applications, hence a more consistent desktop look and feel.
See before: http://lyncis.info/wp-content/uploads/2008/06/qt4-fonts-bad.png
And after: http://lyncis.info/wp-content/uploads/2008/06/qt4-fonts-good.png
More info: http://lyncis.info/post/189/en
Thanks,

Revision history for this message
unmacaque (unmacaque) wrote :

This has been bugging me forever. Qt fonts ignore Gnome hinting setting.

About 10 days ago, this was fixed in Jaunty alpha 6. However, it did not last very long. After the next update, it reverted to the old behaviour again.

http://img24.imageshack.us/my.php?image=bildschirmfoto9.png

Revision history for this message
David Tombs (dgtombs) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 333826, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
David Tombs (dgtombs) wrote :

Forgive me, this is not a duplicate. Assigning to libqt4-x11.

affects: ubuntu → qt4-x11 (Ubuntu)
Changed in qt4-x11 (Ubuntu):
status: Confirmed → New
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Is this still an issue if you select the GTK+ theme for Qt in Ubuntu 9.10 or 10.04?

Changed in qt4-x11 (Ubuntu):
status: New → Incomplete
Revision history for this message
Charles (landemaine) wrote :

Where is this option?

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

In qtconfig, pick GTK+ in the "select GUI appearance" box in the appearance tab. (qtconfig should open up to this tab by default)

Revision history for this message
Charles (landemaine) wrote :

It's no longer an issue! Skype looks great in Gnome :)
Thanks.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Neat. :)

Changed in qt4-x11 (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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