[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [h-e-w] Selecting and setting a fixed width font for NT
From: |
Gallucci, David |
Subject: |
RE: [h-e-w] Selecting and setting a fixed width font for NT |
Date: |
Wed, 5 Feb 2003 10:34:39 -0500 |
I like to have the same font for all frames, so I use:
;; defaults for all frames
(setq default-frame-alist
'((font . "-outline-Courier
New-normal-r-normal-normal-11-82-96-96-c-*-iso8859-15")))
Here's how I get the font string. ( Thanks Eli Daniel ):
;; print the cryptic(!) font name for Windows font.
(if (eq window-system 'w32)
(defun ewd-get-x-font-name ()
"Select font from dialog box, then print X font name at point in
current
buffer. The resulting string can then be used in other Emacs functions
requiring a font type."
(interactive)
(insert (prin1-to-string (w32-select-font)))))
HTH,
Dave Gallucci
-----Original Message-----
From: Robert Marshall [mailto:address@hidden
Sent: Wednesday, February 05, 2003 9:57 AM
To: address@hidden
Subject: Re: [h-e-w] Selecting and setting a fixed width font for NT
On Wed, 5 Feb 2003, Jürgen Albert wrote:
> goto Scratch buffer
> Type (print (frame-parameters)) and C-x C-e
>
> look for (font . ".....
A more direct way to get the font for the current frame:
(frame-parameter nil 'font)
R
--
Robert Marshall
- [h-e-w] Selecting and setting a fixed width font for NT, Neil Mackie, 2003/02/05
- Re: [h-e-w] Selecting and setting a fixed width font for NT, Andy . Ling, 2003/02/05
- RE: [h-e-w] Selecting and setting a fixed width font for NT,
Gallucci, David <=
- RE: [h-e-w] Selecting and setting a fixed width font for NT, Mason, Michael M, 2003/02/06
- RE: [h-e-w] Selecting and setting a fixed width font for NT, Longmire, Ernie, 2003/02/06