help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Semi-OT: font advice


From: Kevin Rodgers
Subject: Re: Semi-OT: font advice
Date: Mon, 26 Apr 2004 11:47:22 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Jesse Sheidlower wrote:
> In article <4087F4FB.7080805@yahoo.com>,
> Kevin Rodgers  <ihs_4664@yahoo.com> wrote:
>>(when (eq window-system 'x)     ; or better yet: (display-multi-font-p)
>>  (set-face-font ...))
>
> I just realized there is a problem with the latter: when I create a new
> frame with C-x 5-2, the new frame is created in the system default font,
> not the one I instruct in the set-face-font command. Is there a way to
> ensure that any such frames appear with my chosen font?

set-face-font's doc string says a nil or omitted FRAME argument "means
change face on all frames", which I guess means all existing frames but
not new frames.

set-default-font (aka set-frame-font) is similarly restricted, but it's
doc string at least points you in the right direction: frame-parameters.
So how about

(setq default-frame-alist
      (cons '(font . "-Misc-Fixed-Medium-R-Normal--15-140-75-75-C-90-ISO8859-1")
            default-frame-alist))

--
Kevin Rodgers



reply via email to

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