[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: FEATURE: Forcing DPI setting for fonts
From:       Germain Garand <germain () ebooksfrance ! org>
Date:       2006-08-26 13:21:15
Message-ID: 200608261521.15739.germain () ebooksfrance ! org
[Download RAW message or body]

Le Vendredi 25 Août 2006 16:47, Lubos Lunak a écrit :
>  Hello,
>
>  this is basically http://bugs.kde.org/show_bug.cgi?id=111754 for the 3.5.x
> branch. Or just google for things like 'kde gnome fonts dpi' to get more
> info about the issue, like
> http://process-of-elimination.net/wiki/Control_Font_DPI_in_X . In short,
> most fonts are designed only for 96DPI and 120DPI and look horribly with
> other DPIs. Since X by default computes real DPI and we just use it, while
> GNOME forces it to 96DPI, we get a lot of "KDE has ugly fonts", despite us
> doing things "properly". Go figure.
>
>  The patch adds a combobox allowing to force DPI this way, but it still
> defaults to real DPI.
>

As a side note, if KDE is to officially support this broken concept of having 
different DPIs for the display and for the font server, we need to document 
that and start fixing our applications to make that distinction as well.

with Qt, I think one needs to use heightMM() instead of logicalDpiY() to be 
guaranteed (is that right? are there other ways?) to derive the display's 
real DPI (and then these methods' documentation should be updated to state 
that the situation on X is now as broken as on Windows!)

E.g. I guess the following CSS test could be made to work in khtml even after 
a user as played with this setting, which obviously it wouldn't right now:

http://www.w3.org/Style/CSS/Test/CSS2.1/current/t040302-c61-phys-len-00-b.htm

Germain

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic