unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [drew.adams@oracle.com: RE: set-frame-font with no KEEP-SIZE arg doesn't resize the frame, so (frame-width) is incorrect]
@ 2004-10-17 16:08 Richard Stallman
  2004-10-17 16:37 ` Jason Rumney
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2004-10-17 16:08 UTC (permalink / raw)


Could someone please look at this bug report?

------- Start of forwarded message -------
From: "Drew Adams" <drew.adams@oracle.com>
To: <rms@gnu.org>
Cc: <emacs-pretest-bug@gnu.org>
Subject: RE: set-frame-font with no KEEP-SIZE arg doesn't resize the frame,so (frame-width) is incorrect
Date: Sun, 10 Oct 2004 10:14:03 -0700
In-Reply-To: <E1CGfR5-00030Q-4j@fencepost.gnu.org>
X-Spam-Status: No, hits=-0.9 required=5.0
	tests=IN_REP_TO,MSGID_GOOD_EXCHANGE
	version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

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

Changing the frame font size this way doesn't do what it should (change the
frame size).


- -----Original Message-----From: Richard Stallman
Which fonts did you use?  Please provide a *precise* test case
that we can try, so we can debug what happens.
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [drew.adams@oracle.com: RE: set-frame-font with no KEEP-SIZE arg doesn't resize the frame, so (frame-width) is incorrect]
  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
  2004-10-17 17:14   ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Rumney @ 2004-10-17 16:37 UTC (permalink / raw)
  Cc: emacs-devel


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [drew.adams@oracle.com: RE: set-frame-font with no KEEP-SIZE arg doesn't resize the frame, so (frame-width) is incorrect]
  2004-10-17 16:37 ` Jason Rumney
@ 2004-10-17 17:14   ` Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2004-10-17 17:14 UTC (permalink / raw)
  Cc: emacs-devel

Thanks, Jason. Very clear.

The pixel-height-only change "worked" in Emacs 20, and I was thinking it
should also "work" as is in 21 - but you are right: my code was not
complete/correct. - Drew

-----Original Message-----From: Jason Rumney
RE: set-frame-font with no KEEP-SIZE arg doesn't resize the frame, so
(frame-width) is incorrect

> (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...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")

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-10-17 17:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2004-10-17 17:14   ` Drew Adams

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