[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:       Lubos Lunak <l.lunak () suse ! cz>
Date:       2006-08-26 18:33:20
Message-ID: 200608262033.20842.l.lunak () suse ! cz
[Download RAW message or body]

Dne sobota 26 srpen 2006 15:21 Germain Garand napsal(a):
> 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.

 Well it's not like users can't force a different DPI value themselves :-/. I 
think e.g. running gnome-settings-daemon in KDE does that.

 But the option is meant rather as a hack, and it intentionally defaults to 
the real DPI (it works just fine for me with Microsoft TTF fonts). Perhaps it 
should even say that the option is not recommended, but with all those people 
saying that our fonts handling sucks just because their fonts suck :( ... 

> 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!)

 I'm afraid I have no idea about this stuff.

> 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.h
>tm
>
> Germain

-- 
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o.   e-mail: l.lunak@suse.cz , l.lunak@kde.org
Lihovarska 1060/12   tel: +420 284 028 972
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http//www.suse.cz

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

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