all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* default font settings
@ 2003-10-07 16:29 Vincenzo Di Somma
  2003-10-07 20:16 ` Orm Finnendahl
  2003-10-08  7:01 ` Gian Uberto Lauri
  0 siblings, 2 replies; 6+ messages in thread
From: Vincenzo Di Somma @ 2003-10-07 16:29 UTC (permalink / raw)


Hi all,
I use (set-default-font 
"-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1")
in my .emacs to set te font I like, but when I open another window with 
C x 5-2 emacs use the default font instead of my one, how can I fix it ?
   Vincenzo.

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

* Re: default font settings
       [not found] <mailman.1257.1065544293.21628.help-gnu-emacs@gnu.org>
@ 2003-10-07 18:18 ` Kevin Rodgers
  0 siblings, 0 replies; 6+ messages in thread
From: Kevin Rodgers @ 2003-10-07 18:18 UTC (permalink / raw)


Vincenzo Di Somma wrote:

> I use (set-default-font 
> "-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1")
> in my .emacs to set te font I like, but when I open another window with 
> C x 5-2 emacs use the default font instead of my one, how can I fix it ?

The doc string for set-default-font explicitly says that it only applies
to the current frame.

The "Font Specification Options" section of the Emacs manual says:

|    By default, Emacs displays text in the font named `9x15', which
| makes each character nine pixels wide and fifteen pixels high.  You can
| specify a different font on your command line through the option `-fn
| NAME' (or `--font', which is an alias for `-fn').
|
| `-fn NAME'
| `--font=NAME'
|      Use font NAME as the default font.
...
| You can also specify the font in your `.Xdefaults' file:
|
|      emacs.font: -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1

I prefer the .Xdefaults method, although I use the Emacs*Font class spec
instead of the emacs.font instance spec.

Or, you could do this in your .emacs:

(let ((font "-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1"))
   (setq initial-frame-alist
	(cons `(font . ,font) initial-frame-alist))
   (setq default-frame-alist
	(cons `(font . ,font) default-frame-alist)))

-- 
Kevin Rodgers

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

* Re: default font settings
  2003-10-07 16:29 default font settings Vincenzo Di Somma
@ 2003-10-07 20:16 ` Orm Finnendahl
  2003-10-08  7:01 ` Gian Uberto Lauri
  1 sibling, 0 replies; 6+ messages in thread
From: Orm Finnendahl @ 2003-10-07 20:16 UTC (permalink / raw)


Am 07. Oktober 2003, 18:29 Uhr (+0200) schrieb Vincenzo Di Somma:
> Hi all,
> I use (set-default-font 
> "-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1")
> in my .emacs to set te font I like, but when I open another window with 
> C x 5-2 emacs use the default font instead of my one, how can I fix it ?
>   Vincenzo.

(add-to-list 'default-frame-alist
  '(font . "-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1"))

--
Orm

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

* default font settings
  2003-10-07 16:29 default font settings Vincenzo Di Somma
  2003-10-07 20:16 ` Orm Finnendahl
@ 2003-10-08  7:01 ` Gian Uberto Lauri
  2003-10-08  9:44   ` Vincenzo Di Somma
  1 sibling, 1 reply; 6+ messages in thread
From: Gian Uberto Lauri @ 2003-10-08  7:01 UTC (permalink / raw)
  Cc: help-gnu-emacs

>>>>> "VDS" == Vincenzo Di Somma <enzo@reflab.it> writes:

VDS> Hi all,
VDS> I use (set-default-font 
VDS> "-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1")
VDS> in my .emacs to set te font I like, but when I open another window with 

What about

((set-face-font
 'default "-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1")

?

                                                 Gian
                                        Friends will be friends
                                           right to the end!

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

* Re: default font settings
  2003-10-08  7:01 ` Gian Uberto Lauri
@ 2003-10-08  9:44   ` Vincenzo Di Somma
  2003-10-08 10:26     ` Gian Uberto Lauri
  0 siblings, 1 reply; 6+ messages in thread
From: Vincenzo Di Somma @ 2003-10-08  9:44 UTC (permalink / raw)


returns an error:

Wrong number of arguments: #[(face font &optional frame) "\303\b	\304
$\207" [face frame font set-face-attribute :font] 5 511032 
(read-face-and-attribute :font)], 1

Gian Uberto Lauri wrote:
>>>>>>"VDS" == Vincenzo Di Somma <enzo@reflab.it> writes:
> 
> 
> VDS> Hi all,
> VDS> I use (set-default-font 
> VDS> "-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1")
> VDS> in my .emacs to set te font I like, but when I open another window with 
> 
> What about
> 
> ((set-face-font
>  'default "-adobe-courier-medium-r-normal--12-120-75-75-m-70-iso8859-1")
> 
> ?
> 
>                                                  Gian
>                                         Friends will be friends
>                                            right to the end!
> 
> 

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

* Re: default font settings
  2003-10-08  9:44   ` Vincenzo Di Somma
@ 2003-10-08 10:26     ` Gian Uberto Lauri
  0 siblings, 0 replies; 6+ messages in thread
From: Gian Uberto Lauri @ 2003-10-08 10:26 UTC (permalink / raw)
  Cc: help-gnu-emacs

>>>>> "VDS" == Vincenzo Di Somma <enzo@reflab.it> writes:

VDS> returns an error:
VDS> Wrong number of arguments: #[(face font &optional frame) "\303\b	\304
VDS> $\207" [face frame font set-face-attribute :font] 5 511032 
VDS> (read-face-and-attribute :font)], 1

That's the most strange result. I  have it at the very beginning of my
.emacs and just tried it in the *scratch* buffer.

(set-face-font
        'default 
	'"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-15")

There  are 2  parameters, correctly  pointing that  the change  has to
affect all frames.

I'm using 

"GNU Emacs 21.2.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-03-22 on raven, modified by Debian"


 /\            ___
/___/\__|_|\_|__|___Gian Uberto Lauri_____________________
  //--\ | | \|  |   Integralista GNUslamico e fancazzista 
\/

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

end of thread, other threads:[~2003-10-08 10:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-07 16:29 default font settings Vincenzo Di Somma
2003-10-07 20:16 ` Orm Finnendahl
2003-10-08  7:01 ` Gian Uberto Lauri
2003-10-08  9:44   ` Vincenzo Di Somma
2003-10-08 10:26     ` Gian Uberto Lauri
     [not found] <mailman.1257.1065544293.21628.help-gnu-emacs@gnu.org>
2003-10-07 18:18 ` Kevin Rodgers

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.