unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* set-frame-font question
@ 2007-02-18 23:17 B. T. Raven
  2007-02-19  4:19 ` Eli Zaretskii
       [not found] ` <mailman.4714.1171858764.2155.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: B. T. Raven @ 2007-02-18 23:17 UTC (permalink / raw)
  To: help-gnu-emacs

Hello:

At the beginning of my .emacs I have this form:

(setq initial-frame-alist '((name . "arial") (top . 370) (left . 1) (width
. 163) (height . 17)))

And at the end:

(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(default ((t (:stipple nil :background "ghostwhite" :foreground "black"
:inverse-video nil :box nil :strike-through nil :overline nil :underline
nil :slant normal :weight normal :height 108 :width normal :family
"outline-arial unicode ms")))))


and these to make a frame for looking at things that don't play well with
proportional fonts, like calendar:

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

These work all right in version 21.3 but not in the latest snapshot of 22.
However, if I go to the "courier" frame and issue M-x set-frame-font, it
works okay. Does any of you have any idea why it can't be set from the
init file? --debug-init doesn't complain, it just leaves it with the
default proportional font and so gets the frame geometry wrong.

Thanks,
Ed

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

* Re: set-frame-font question
  2007-02-18 23:17 set-frame-font question B. T. Raven
@ 2007-02-19  4:19 ` Eli Zaretskii
       [not found] ` <mailman.4714.1171858764.2155.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2007-02-19  4:19 UTC (permalink / raw)
  To: help-gnu-emacs

> From: "B. T. Raven" <ecinmn@alcisp.com>
> Date: Sun, 18 Feb 2007 17:17:24 -0600
> 
> At the beginning of my .emacs I have this form:
> 
> (setq initial-frame-alist '((name . "arial") (top . 370) (left . 1) (width
> . 163) (height . 17)))
> 
> And at the end:
> 
> (custom-set-faces
>   ;; custom-set-faces was added by Custom.
>   ;; If you edit it by hand, you could mess it up, so be careful.
>   ;; Your init file should contain only one such instance.
>   ;; If there is more than one, they won't work right.
>  '(default ((t (:stipple nil :background "ghostwhite" :foreground "black"
> :inverse-video nil :box nil :strike-through nil :overline nil :underline
> nil :slant normal :weight normal :height 108 :width normal :family
> "outline-arial unicode ms")))))
> 
> 
> and these to make a frame for looking at things that don't play well with
> proportional fonts, like calendar:
> 
> (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")
> 
> These work all right in version 21.3 but not in the latest snapshot of 22.

Please explain what you mean by ``work''.  You didn't say what you
thought these customizations should do, in your opinion, and without
that it's very hard to guess what's wrong with them.

What I see is that you customized the initial frame and the default
face, that's all.

> However, if I go to the "courier" frame and issue M-x set-frame-font, it
> works okay. Does any of you have any idea why it can't be set from the
> init file? --debug-init doesn't complain, it just leaves it with the
> default proportional font and so gets the frame geometry wrong.

Do you want all frames to use the outline-arial font?  Is that it?  If
so, did you try customizing default-frame-alist to specify that?

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

* Re: set-frame-font question
       [not found] ` <mailman.4714.1171858764.2155.help-gnu-emacs@gnu.org>
@ 2007-02-19  5:29   ` B. T. Raven
  0 siblings, 0 replies; 3+ messages in thread
From: B. T. Raven @ 2007-02-19  5:29 UTC (permalink / raw)
  To: help-gnu-emacs


"Eli Zaretskii" <eliz@gnu.org> wrote in message
news:mailman.4714.1171858764.2155.help-gnu-emacs@gnu.org...
> > From: "B. T. Raven" <ecinmn@alcisp.com>
> > Date: Sun, 18 Feb 2007 17:17:24 -0600
> >
> > At the beginning of my .emacs I have this form:
> >
> > (setq initial-frame-alist '((name . "arial") (top . 370) (left . 1)
(width
> > . 163) (height . 17)))
> >
> > And at the end:
> >
> > (custom-set-faces
> >   ;; custom-set-faces was added by Custom.
> >   ;; If you edit it by hand, you could mess it up, so be careful.
> >   ;; Your init file should contain only one such instance.
> >   ;; If there is more than one, they won't work right.
> >  '(default ((t (:stipple nil :background "ghostwhite" :foreground
"black"
> > :inverse-video nil :box nil :strike-through nil :overline nil
:underline
> > nil :slant normal :weight normal :height 108 :width normal :family
> > "outline-arial unicode ms")))))
> >
> >
> > and these to make a frame for looking at things that don't play well
with
> > proportional fonts, like calendar:
> >
> > (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")
> >
> > These work all right in version 21.3 but not in the latest snapshot of
22.
>
> Please explain what you mean by ``work''.  You didn't say what you
> thought these customizations should do, in your opinion, and without
> that it's very hard to guess what's wrong with them.
>
> What I see is that you customized the initial frame and the default
> face, that's all.
>
> > However, if I go to the "courier" frame and issue M-x set-frame-font,
it
> > works okay. Does any of you have any idea why it can't be set from the
> > init file? --debug-init doesn't complain, it just leaves it with the
> > default proportional font and so gets the frame geometry wrong.
>
> Do you want all frames to use the outline-arial font?  Is that it?  If
> so, did you try customizing default-frame-alist to specify that?
>
>

Thanks for your attention to this, Eli. No, I wanted only 2 frames, the
initial one using arial (proportional) sized and placed in the bottom half
of the screen and another (Courier New, a fixed width font) in the top
half for viewing the calendar. In version 21.3 with the above code in
.emacs I got exactly this result, a nicely aligned calendar in the
"courier" frame and the "ariel" frame showing everything in a proportional
font. In version 22.0.93 both frames are using ariel as if the make-frame
function didn't call for Courier New. In addition, the frame named
"courier" is now incorrectly sized since it is using the wrong font. With
C-h v I see that default-frame-alist seems to have inherited (if that's
the right word) some settings from the custom-set-faces function:

"
default-frame-alist is a variable defined in `C source code'.
Its value is
((foreground-color . "black")
 (background-color . "ghostwhite")
 (tool-bar-lines . 0)
 (menu-bar-lines . 1)
 (right-fringe)
 (left-fringe))
"

I edited the >> quoted text  above in this posting to explictly show the
space in the "Courier New" font name. Is this handled differently in 21.3
and 22.0?

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

end of thread, other threads:[~2007-02-19  5:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-18 23:17 set-frame-font question B. T. Raven
2007-02-19  4:19 ` Eli Zaretskii
     [not found] ` <mailman.4714.1171858764.2155.help-gnu-emacs@gnu.org>
2007-02-19  5:29   ` B. T. Raven

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