From: Jason Rumney <jasonr@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [drew.adams@oracle.com: 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 [thread overview]
Message-ID: <usm8d5mhw.fsf@jasonrumney.net> (raw)
In-Reply-To: <E1CJDZm-000372-H1@fencepost.gnu.org> (Richard Stallman's message of "Sun, 17 Oct 2004 12:08:06 -0400")
> 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")
next prev parent reply other threads:[~2004-10-17 16:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-17 16:08 [drew.adams@oracle.com: RE: set-frame-font with no KEEP-SIZE arg doesn't resize the frame, so (frame-width) is incorrect] Richard Stallman
2004-10-17 16:37 ` Jason Rumney [this message]
2004-10-17 17:14 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=usm8d5mhw.fsf@jasonrumney.net \
--to=jasonr@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).