emacs-devel
[Top][All Lists]
Advanced

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

Re: address@hidden: RE: set-frame-font with no KEEP-SIZE arg doesn't res


From: Jason Rumney
Subject: Re: address@hidden: RE: set-frame-font with no KEEP-SIZE arg doesn't resize the frame, so (frame-width) is incorrect]
Date: Sun, 17 Oct 2004 17:37:47 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt)

> I tried it with different fonts. Try any two fonts that differ only by size.
> For example:
>
> (set-frame-font "-outline-Lucida
> Console-normal-r-normal-normal-14-105-96-96-c-80-iso8859-1")
>
> (set-frame-font "-outline-Lucida
> Console-normal-r-normal-normal-18-105-96-96-c-80-iso8859-1")

You have only changed the pixel height of the font, without changing
the height in points, or the width of the font. This makes Emacs try
to accomodate your request as far as it can, so even though the
closest matching font is wider, it uses the width you specified (80 in
tenths of points) in frame width calculations. If you replace the
other size specifiers with wildcards, the frame width changes as
expected:

(set-frame-font
 "-outline-Lucida Console-normal-r-normal-normal-18-*-96-96-c-*-iso8859-1")





reply via email to

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