From: "B. T. Raven" <ecinmn@alcisp.com>
To: help-gnu-emacs@gnu.org
Subject: Re: set default font for new frame
Date: Wed, 28 Mar 2007 21:21:23 -0500 [thread overview]
Message-ID: <b024e$460b22b5$49f2652$13676@DIALUPUSA.NET> (raw)
In-Reply-To: <mailman.1523.1175078672.7795.help-gnu-emacs@gnu.org>
ssSslang wrote:
> Hi there, I wonder how to set the new frame's font. Now I had
> (set-default-font "MyFontName") written in ~/.emacs. I can see the right
> font when I start emacs. But the font changed after I called C-x 5 2 to
> make a new frame. Could someone told me a solution? Thanks.
At least under ver. 21.3 you can add window frame parameters to the
make-frame function. I have this in my .emacs (for a second frame with a
non-proportional font):
(make-frame '((name . "courier")
(top . 1) (left . 1) (width . 98) (height . 17)
(visibility . icon) ; nil or icon
(font . "-outline-Courier
New-normal-r-normal-normal-*-*-96-96-c-*-iso10646-1")))
(select-frame-by-name "courier")
;;Doesn't work in 22.0. Elisp manual (29.3.3 Window Frame Parameters) says
somewhere that some optional arguments are semi-obsolete. Font is only
mentioned under color parameters.
next parent reply other threads:[~2007-03-29 2:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1523.1175078672.7795.help-gnu-emacs@gnu.org>
2007-03-29 2:21 ` B. T. Raven [this message]
2007-03-28 10:42 set default font for new frame ssSslang
2007-03-28 10:45 ` Herbert Euler
2007-03-28 11:41 ` Peter Dyballa
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='b024e$460b22b5$49f2652$13676@DIALUPUSA.NET' \
--to=ecinmn@alcisp.com \
--cc=help-gnu-emacs@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.
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).