From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Chuck Siska Newsgroups: gmane.emacs.help Subject: Re: Setting default fonts Date: Wed, 12 Jun 2002 09:56:46 -0700 Organization: Conexant Systems, Inc. Sender: help-gnu-emacs-admin@gnu.org Message-ID: <3D077D4E.F67D2235@nb.conexant.com> References: <3D06E191.E6191CC4@mailandnews.com> <1023873519.6111.4.camel@localhost.localdomain> <20020613.003830.74751788.acmuller@gol.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1023900608 18344 127.0.0.1 (12 Jun 2002 16:50:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Jun 2002 16:50:08 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17IBJv-0004lk-00 for ; Wed, 12 Jun 2002 18:50:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17IBIc-0001lR-00; Wed, 12 Jun 2002 12:48:46 -0400 Original-Received: from cnxtsmtp2.conexant.com ([198.62.9.253]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17IBHY-0001eY-00 for ; Wed, 12 Jun 2002 12:47:40 -0400 Original-Received: from npbsmtp1.conexant.com (npbsmtp1.nb.conexant.com [157.152.161.153]) by cnxtsmtp2.conexant.com (8.9.3/8.9.3) with ESMTP id JAA19316 for ; Wed, 12 Jun 2002 09:46:52 -0700 (PDT) Original-Received: from nb.conexant.com ([172.19.41.119]) by npbsmtp1.conexant.com (Lotus Domino Release 5.0.10) with ESMTP id 2002061209463913:164865 ; Wed, 12 Jun 2002 09:46:39 -0700 X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en Original-To: Help Gnu Emacs X-MIMETrack: Itemize by SMTP Server on NPBSMTP1/Server/Conexant(Release 5.0.10 |March 22, 2002) at 06/12/2002 09:46:39 AM, Serialize by Router on NPBSMTP1/Server/Conexant(Release 5.0.10 |March 22, 2002) at 06/12/2002 09:46:39 AM, Serialize complete at 06/12/2002 09:46:39 AM Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:456 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:456 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 `<}:.. ((,.-' ((,/