From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.help Subject: Re: emacs (mswindows) font problem Date: Thu, 5 Sep 2002 18:26:59 +0000 (UTC) Organization: BT Openworld Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031250869 16894 127.0.0.1 (5 Sep 2002 18:34:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Sep 2002 18:34:29 +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 17n1SU-0004OB-00 for ; Thu, 05 Sep 2002 20:34:26 +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 17n1U7-0006De-00; Thu, 05 Sep 2002 14:36:07 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!news.btopenworld.com!nyaumo.btinternet.com!nobody Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: host62-7-107-221.in-addr.btopenworld.com Original-X-Trace: knossos.btinternet.com 1031250419 19372 62.7.107.221 (5 Sep 2002 18:26:59 GMT) Original-X-Complaints-To: news-complaints@lists.btinternet.com Original-NNTP-Posting-Date: Thu, 5 Sep 2002 18:26:59 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: nntp.stanford.edu gnu.emacs.help:104512 Original-To: help-gnu-emacs@gnu.org 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:1071 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1071 Jon Kvebaek writes: > Hi - I really like the gamow font from > http://dreamer.nitro.dk/linux/lfp/lfpfonts-win.html > ... > The font displays in the font menu (shit-lmouse), but if I select it I > just get a default courier font. > > Any ideas? The problem stems from the fact that Emacs always uses a Latin-1 font to display ASCII unless you go to the trouble of making a fontset. The font has a non-standard value for its encoding. One way to get it to display would be to load the font into a font editor, and change the encoding field to ANSI (the Windows equivalent of Latin-1). Another way that does not involve changing the font is to define a fontset using that font as the base: (set-default-font (create-fontset-from-ascii-font "FONTNAME")) or to have newly created frames use the font: (add-to-list 'default-frame-alist `(font . ,(create-fontset-from-ascii-font "FONTNAME"))) Where FONTNAME should be replaced by the full name of the font, which on MS-Windows is reported by (w32-select-font) C-x C-e. -- Jason Rumney