[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting default fonts
From: |
Chuck Siska |
Subject: |
Re: Setting default fonts |
Date: |
Wed, 12 Jun 2002 09:56:46 -0700 |
chuck --
to see all the available fonts, first select a buffer into which
you don't mind entering text (e.g., the *scratch* buffer). now
enter the following lisp expression in that buffer:
(insert (prin1-to-string (x-list-fonts "*")))
place the text cursor at the end of this lisp expression and type
M-x eval-print-last-sexp.
you should see a parenthesized list like the following appear immediately
after that lisp expression. each entry, in double-qoutes, is a
font description. (note, i've shortened my output list, here,
from my own 880 entries to just the two shown.
("-*-Mini Pics Red Rock-normal-r-*-*-*-*-96-96-p-*-iso8859-1" "-*-Mini Pics Lil
Vehicles-normal-r-*-*-*-*-96-96-p-*-iso8859-1")
now, i setup my initial font in emacs by executing the following
lisp expressions when i'm running emacs on mswind. These are
executed automatically in my _emacs (or .emacs) file when emacs
starts up, but you can execute them by hand if you wish. note,
that i've taken a liberty, here, of replacing some of the font
description elements with a "*" wildcard, but you can just use
one of the font descriptions directly.
; set font to terminal, regular, 6 point.
(setq cs-default-font "-*-Terminal-normal-r-*-*-8-60-*-*-c-*-*-oem-")
(progn
(setq initial-frame-alist
(append `((font . ,cs-default-font))
initial-frame-alist))
(setq default-frame-alist
(append `((font . ,cs-default-font))
default-frame-alist)))
good luck.
-- chuck
Charles Muller wrote:
>
> Marco Baringer helpfully advised:
>
> >
> > M-x set-default-font TAB
> >
> > will give you all the fonts available. this is kind of hackish, but it
> > works.
>
> My apologies for my denseness--I am completely new to Emacs, and am
> struggling.
>
> When I do like the above, I then get a request for information like
>
> Font name:
>
> But I don't know what I am supposed to input here.
>
> When I do this:
>
> > (insert (frame-parameter nil 'font))
>
> Then, when I start Emacs, the first thing I get is a listing of an Adobe
> Courier 12 point font. But I don't know what I should do with this. Is there
> any chance that I could get you to explain just a bit further. I think I am
> almost there (I have gotten XML validation working, MEW working, and Japanese
> input working, so I should be able to work through this matter of default
> fonts!)
>
> Thanks much,
>
> Chuck
>
> ------------------------------
>
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
--
|\_/\_.-'""``:-._
What is life without looking for . . `; -._ )-;-,_`)
the next cute little bug to play with? v_,- _ ),(,.\ ``-'
_.- _.,-_/ / ((.'
-- chuck.siska@conexant.com `<}:.. ((,.-' ((,/