From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Bingham, Jay" Newsgroups: gmane.emacs.help Subject: RE: Saving Fonts Date: Wed, 16 Oct 2002 18:40:44 -0500 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <72A87F7160C0994D8C5A36E2FDC227F5037813A4@txnexc01.americas.cpqcorp.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1034988120 31214 80.91.224.249 (19 Oct 2002 00:42:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 19 Oct 2002 00:42:00 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 182hgk-00087J-00 for ; Sat, 19 Oct 2002 02:41:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 182hhD-0000MA-00; Fri, 18 Oct 2002 20:42:27 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 182hgQ-00005G-00 for help-gnu-emacs@gnu.org; Fri, 18 Oct 2002 20:41:38 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 182hgO-0008WU-00 for help-gnu-emacs@gnu.org; Fri, 18 Oct 2002 20:41:37 -0400 Original-Received: from gnudist.gnu.org ([199.232.41.7]) by monty-python.gnu.org with esmtp (Exim 4.10) id 182br9-0002ph-01 for help-gnu-emacs@gnu.org; Fri, 18 Oct 2002 14:28:19 -0400 Original-Received: from zcamail04.zca.compaq.com ([161.114.32.104]) by gnudist.gnu.org with esmtp (Exim 4.10) id 181xnO-0004Hl-00 for help-gnu-emacs@gnu.org; Wed, 16 Oct 2002 19:41:46 -0400 Original-Received: from cacexg11.americas.cpqcorp.net (cacexg11.americas.cpqcorp.net [16.105.250.94]) by zcamail04.zca.compaq.com (Postfix) with ESMTP id 25B111192 for ; Wed, 16 Oct 2002 16:40:45 -0700 (PDT) Original-Received: from txnexc01.americas.cpqcorp.net ([16.74.7.244]) by cacexg11.americas.cpqcorp.net with Microsoft SMTPSVC(5.0.2195.2966); Wed, 16 Oct 2002 16:40:44 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Saving Fonts Thread-Index: AcJ0rvxESgzXtaldTlaiO41QLBj2kgArld5Q Original-To: X-OriginalArrivalTime: 16 Oct 2002 23:40:44.0867 (UTC) FILETIME=[7242F130:01C2756D] Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 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:2724 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2724 Peter, You may think that you have solved this, but what you have is only a = partial solution. What you may not be aware of is that the function set-default-font is in = actuality an alias for set-frame-font. Which only sets the font for the = current frame. When it is run in your .emacs it only sets the font in = the frame in which it is run, i.e. the initial frame. If a new frame is = created (C-x 5 2) it will have the default font. If that does not = bother you then you have a solution. If it bothers you then you need to = do something different. Your options are:=20 - Add the font specification to the default-frame-alist - specify the font in an X resource The method used to specify the font via the default-frame-alist is the = same for both Windows and Unix emacen, put the following in your .emacs: (add-to-list 'default-frame-alist '(font . = "name-of-your-favorite-font-goes-here")) The method used to specify the font via an X resource depends on the = operating system that you run emacs under. Since you are running in = Windows specifying the X resource is done by adding an entry in the = Windows Registry which is where an Emacs compiled for Windows looks for = X resources. One advantage of specifying the X resource is that the font is set = before the initial frame is created. For fonts this may not be = noticeable (for frame geometry it is very noticeable). To set the font via the Windows Registry, run regedit and under one of = the following keys `HKEY_CURRENT_USER\SOFTWARE\GNU\Emacs' (affects you = only, if each user of the machine has their own login)=20 `HKEY_LOCAL_MACHINE\SOFTWARE\GNU\Emacs' (affects all users of the = machine) add a new string value (edit - new - string value) named=20 Emacs.Font Modify the value (edit - modify) and insert the font name string into = the value data field, in your case it will probably be "-outline-Courier = New-normal-r-normal-normal-12-90-96-96-c-70-iso8859-1" (the quotes are = not included). You could shorten this to "-outline-Courier = New-normal-r-normal-normal-12-*-*-*-c-70-iso8859-1" if you were so = inclined. Another advantage of the X resource route is that the menu fonts (which = are configurable only via the X resources) can be set to match the font = that you have selected for the buffer window or to something else = entirely if you prefer. The following two X resources can be used to = control menu fonts: Emacs.pane.menubar.font (sets the menu bar) Emacs.menu*.font (set the popup menus) While I am yakking away here could I suggest that if you are not already = subscribed you should checkout the emacs windows mailing list, which is = the best place to ask windows specific questions (I am not implying that = your question was windows specific, but my answer sure became so). You = can subscribe by sending a message to help-emacs-windows-request@gnu.org = with the word "subscribe" in the body of the message. Happy emacsing -_ J_) C_)ingham . HP - NonStop Austin Software & Services - Software Product = Assurance . Office: 2166 Phone: 8945 . Language is the apparel in which your thoughts parade in public. . Never clothe them in vulgar and shoddy attire. -Dr. George W. = Crane- -----Original Message----- From: Peter Ashford [mailto:me@here.there.com]=20 Sent: Tuesday, October 15, 2002 7:50 PM To: help-gnu-emacs@gnu.org Subject: Re: Saving Fonts "Jesper Harder" wrote in message news:m3elar2pw7.fsf@defun.localdomain... > "Peter Ashford" writes: > > > Thanks for that. How do I find out the font string to use for the > > font I like (Courier New, 9pt)? > > You can do `C-u c-x =3D' to discover the font string for the font = you're > currently using. > Thanks - that did the trick! Peter. _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnu-emacs