Qt 4.5 does not respect “hinting” setting

Bug #333826 reported by Alexander Jones
78
This bug affects 11 people
Affects Status Importance Assigned to Milestone
qt4-x11 (Ubuntu)
Expired
Low
Unassigned
Declined for Jaunty by Harald Sitter

Bug Description

I have font hinting disabled in fontconfig AND in my gnome settings, yet Qt 4.5 still draws BCI-hinted fonts.

Update: having hinting = false seems to have no effect on Qt, either with QtGtkStyle or Plastique.

Workaround: hintstyle=hintnone (as opposed to hintslight, hintmedium, hintfull) controls it perfectly in Qt.

So the bug is that Qt firstly does not honour GConf settings for QtGtkStyle as it is supposed to, and then that in the fontconfig setup, it ignores the "hinting" setting completely.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: libqtcore4 4.5.0~+rc1-0ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: qt4-x11
Uname: Linux 2.6.28-6-generic x86_64

Revision history for this message
Alexander Jones (alex-weej) wrote :
Revision history for this message
Alexander Jones (alex-weej) wrote :

Still affecting alpha 6.

Revision history for this message
Alexander Jones (alex-weej) wrote :

Not sure if I've changed something with my configuration, but Qt is using the autohinter now instead of the bytecode native hinter.

So it looks better, but it's still wrong...

description: updated
summary: - Font hinting in Qt doesn't match other settings
+ QT 4.5 does not respect hinting setting
Revision history for this message
Bartek (tschew) wrote : Re: QT 4.5 does not respect hinting setting

Are there any news on this? I would really like to use opera again but as it stands the fonts are really hard to read on my display due to hinting. I've filed a bug with qtsoftware but it hasn't appeared in their task tracker yet. (http://www.qtsoftware.com/developer/task-tracker/index_html?method=front)

Revision history for this message
Bartek (tschew) wrote :

I believe the issue will appear upstream in a short while, here's the e-mail I received today.

QTSoftware Issue number: 255555

-----------------------------------------------------
Hello,

This is an auto-reply to your email.

We have read your email but require more time to deal with it. We have
assigned it the issue number #255555. Please use this number if you email
us about the issue. We regret that we cannot guarantee a personal reply.

For a list of known issues and feature requests, use the online Task
Tracker:

http://trolltech.com/developer/task-tracker

[.....]

summary: - QT 4.5 does not respect hinting setting
+ Qt 4.5 (with GTK+ style) does not respect hinting setting
Changed in qt4-x11 (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Mirco Müller (macslow) wrote : Re: Qt 4.5 (with GTK+ style) does not respect hinting setting

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
Alexander Jones (alex-weej) wrote : Re: [Bug 333826] Re: Qt 4.5 (with GTK+ style) does not respect hinting setting

Please be advised that the workaround I posted does still work.

2009/8/5 Mirco Müller <email address hidden>

> 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).
>
> ** Attachment added: "gtk-text-vs-qt-text.png"
> http://launchpadlibrarian.net/29927743/gtk-text-vs-qt-text.png
>
> --
> Qt 4.5 (with GTK+ style) does not respect hinting setting
> https://bugs.launchpad.net/bugs/333826
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Bartek (tschew) wrote : Re: Qt 4.5 (with GTK+ style) does not respect hinting setting

I don't understand why "with GTK+ style" is emphasized in the bug name. QT should respect the hinting setting regardless of which qt style is being used and it currently doesn't.

summary: - Qt 4.5 (with GTK+ style) does not respect hinting setting
+ Qt 4.5 does not respect “hinting” setting
Revision history for this message
Harald Sitter (apachelogger) wrote :

Still a problem in 12.10?

Changed in qt4-x11 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Søren Holm (sgh) wrote :

Yes ... Linux Mint 14 which is based on ubuntu 12.10 has this problem still..... qtconfig font-size fx. does not work unless some other style that GTK+ is chosen in qtconfig

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

[Expired for qt4-x11 (Ubuntu) because there has been no activity for 60 days.]

Changed in qt4-x11 (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Oleksandr Shybystyi (o.shybystyi) wrote :
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.