Summary: | Qt 4.5.3 is switching to a bigger font randomly | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michal Špondr <michal.spondr> |
Component: | [OLD] Library | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED WORKSFORME | ||
Severity: | minor | CC: | profalbert |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
This is the normal font size I had before
This is the big font size that occurs sometimes |
Description
Michal Špondr
2009-12-15 19:29:40 UTC
Created attachment 213129 [details]
This is the normal font size I had before
Created attachment 213131 [details]
This is the big font size that occurs sometimes
Even though there is no clear way to reproduce it, I am assigning this bug to Qt herd I'm using gnome but have kde's sytemsettings installed (along with some other kde-stuff). I observed that I can fix this bug by setting force dpi in systemsettings->Appearance->Fonts->Force Fonts DPI to 96 dpi. Then all newly started qt-apps appear with 96-dpi fonts. After setting this to "Disabled" the fonts are huge again. Also, if I restart leaving the setting to 96 dpi, it (sometimes) does not get reapplied properly, so I (sometimes) have the huge fonts again after restart, until I go to systemsettings and reapply the 96 dpi. hope this helps in some way Some additional information $ xdpyinfo | grep resolution resolution: 129x133 dots per inch I also set gnomes font dpi to 96. So 96 looks "normal" to me now. I have a laptop with a 15,4" 16:10 screen, and run a resolution of 1680x1050. I was using 100 dpi resolution, switched to the recommended 96 dpi (in Gnome Settings) and now it works well. Thank you. (In reply to comment #6) > I was using 100 dpi resolution, switched to the recommended 96 dpi (in Gnome > Settings) and now it works well. > Thank you. > That didn't work for me. I observed this bug on 2 laptops now. Some conditions that might affect be related to reproducing the issue: * having a high-resolution-screen (1680x1050) * use the proprietery nvidia driver * using autogenerated xorg.conf by nvidia-xconfig In the end, it must be related to xdpyinfo returning "129x133 dots per inch", I think because that's about the resolution the fontsize applies to. So forcing dpi-resolution through xorg.conf Section "Screen" ... Option "DPI" "96x93" ... EndSection xdpyinfo returns that resolution than. The question is where does the 133x129-value come from? And why does only qt use it? xdpyinfo also returned "129x133 dots per inch" to me. I have also the same resolution 1680x1050 and nvidia-drivers. Hmm, so Gnome-settings changed it successfully before, but now I have the same problem even with 96 dpi in Gnome enabled. $ xdpyinfo |grep resolution resolution: 129x133 dots per inch |