[Top][All Lists]

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

Re: cvs emacs scales fonts to awfully big?

From: Peter Tury
Subject: Re: cvs emacs scales fonts to awfully big?
Date: Fri, 2 Jan 2009 13:41:17 -0800 (PST)
User-agent: G2/1.0


thanks very much for the hints!

I learned a lot from them, but my problem remained unchanged: cvs
Emacs still uses an awfully big default font: now I thing this could
be seen as a bug in current cvs version. What do you think? (Now I
customized 'default' font to ":height 80" and this improved the
sitution, but I think Emacs should be better at guessing defaults for
'default' font.)

Based on
and on
I figured out that the actual dpi for my display is 129. prooved this.

I set ~/.Xresources as follows:
Xft.dpi: 129
Emacs.FontBackend: xft (is this unnecessary?)

Also I set Gnome default fonts to 8pt. (Originally 96dpi was assumed
by Gnome by default and bigger fonts were used system-wide: I had to
change them when I set correct dpi values.)

However, none of these affected Emacs: it still uses 11.8pt high fonts
(previously it was 12pt)!? Where does this default come from? I guess
that code should be improved.

On 2008 dec. 28, 01:38, Peter Dyballa <address@hidden> wrote:

> In KDE and GNOME there are rule settings about appropriate font  
> sizes. An optimised bitmapped font for 100 DPI is larger than the  
> same font for 75 DPI. When the X11 font path has the 100 DPI font  
> before the 75 DPI fonts than these larger fonts are used.

How can I check if this is the case now for me? (I use Gnome on Ubuntu

> GNU Emacs  23.0.60 uses libXft. When a 100 DPI display is assumed by Xft then 
> quite large 75 DPI fonts might be used ...

I think now this can be ruled out in my case (becasue of my
~/.Xresources settings; see above).
Am I right?

> You could add to your X defaults a setting like this:
>         Xft.dpi: 96
> or a value closer to your display's resolution. It might also help to  
> run your X server with your display's resolution. Some X servers  
> evaluate the contents of a ~/.xserverrc file.

Now it seem X server knows my real dpi and uses it correctly. Only
Emacs wants to use strange size fonts.


Meanwhile I checked also.
It seems to be a bit outdated. Am I right?

reply via email to

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