emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parsing of fontconfig font names and other font related stuff.


From: Jan Djärv
Subject: Re: Parsing of fontconfig font names and other font related stuff.
Date: Wed, 08 Jul 2009 16:29:21 +0200
User-agent: Thunderbird 2.0.0.22 (X11/20090608)

Miles Bader skrev:
Kenichi Handa <address@hidden> writes:
The fast but kind of ugly way would be to add the defaults from XftDefaultSubstitute to the name if it is an fcname and Xft is present.
shouldn't the DPI value from GConf be reflected to (struct
x_display_info).resy or (struct frame).resy?

You'd think, but IIRC, Gnome just fucks this up.

[I think it's a "policy" fuckup rather than a technical one.]


The argument I've seen is that selecting font sizes isn't a linear operation (i.e. proportional to dpi), but an angular one (i.e. depends on the size of the screen and the distance to the screen). So for example laptop users sit closer to the screen and don't want fonts to be so much bigger as implied by the dpi difference. Another one is that DPI is kind of fuzzy anyway, for example for projectors.

I think a good compromize for an Emacs that uses Xft, is just to check if Xft.dpi is in the Xdefaults, and if it is, just use it. Which is what Handa-san suggested.

        Jan D.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]