Qt does not respect DPI setting

Bug #490006 reported by Mingming Ren
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
qt4-x11 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In my Karmic, although I set all font sizes as 10, qt apps always display a smaller font that gtk apps.
After some investigation, I found that the DPI setting in gnome is 96, but

$ xdpyinfo | grep reso
  resolution: 94x94 dots per inch

$ xrdb -q
 Xft.dpi: 96

After setting DPI to 94 in gnome, I got a same font size in both qt and gtk apps.
But I think 96 is a more accurate value for my monitor. So I tried to set DPI in ~/.fonts.conf
<match target="pattern">
  <edit name="dpi" mode="assign">
    <double>96</double>
  </edit>
</match>

But Qt doesn't respect that setting. It always considers DPI as 94.

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
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.