← Back to team overview

touch-packages team mailing list archive

[Bug 490006] Re: Qt does not respect DPI setting

 

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

** Changed in: qt4-x11 (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qt4-x11 in Ubuntu.
https://bugs.launchpad.net/bugs/490006

Title:
  Qt does not respect DPI setting

Status in “qt4-x11” package in Ubuntu:
  Confirmed

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/490006/+subscriptions