From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris McMahan Newsgroups: gmane.emacs.help Subject: Re: [Win32] Font issues - not showing all fonts available Date: Fri, 19 Dec 2008 17:13:39 -0500 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: <4r5hc4zrey4.fsf@one.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229726449 26399 80.91.229.12 (19 Dec 2008 22:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2008 22:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 19 23:41:54 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LDo2U-0006sl-Uh for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Dec 2008 23:41:47 +0100 Original-Received: from localhost ([127.0.0.1]:53715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDo1I-0003EN-MN for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Dec 2008 17:40:32 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 68 Original-NNTP-Posting-Host: panix5.panix.com Original-X-Trace: reader1.panix.com 1229724820 26460 166.84.1.5 (19 Dec 2008 22:13:40 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Fri, 19 Dec 2008 22:13:40 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) Cancel-Lock: sha1:C0SiMWnYak7GrvcCDqqu+AkqfbA= Original-Xref: news.stanford.edu gnu.emacs.help:165533 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60864 Archived-At: Here's some functions I hacked up to display either the fixed width (default) or all fonts (argument), then set the current font to the selection: I would certainly welcome any suggestions to improve the coding, my lisp ability is elementary at best! - Chris ;;;_.====================================================================== ;;;_. functions to get and set current fonts (defun get-font (&optional arg) "Return a string representing the selected font. With prefix argument ARG, include proportional fonts in the selection choices" (interactive "P") (if (null arg) (x-select-font nil 't) (x-select-font nil nil))) (defun set-font (&optional arg) "Select the default font for this frame With prefix argument ARG, include proportional fonts in the selection choices" (interactive) (set-frame-font (call-interactively 'get-font arg)) (message "")) (defun print-font (&optional arg) "Yank the name of the selected font at the current point With prefix argument ARG, include proportional fonts in the selection choices" (interactive) (insert (prin1-to-string (call-interactively 'get-font arg)))) Carl-Erik writes: > Coming from a point-and-click background (Eclipse, Gedit, Notepad2) and Vim > background, and being no Lisper, I wanted to change the default font in > Emacs (using Windows Vista) using the GUI. Unfortunately the list of fonts > available is only a very minor subset of the fonts I have, and none of the > ones I would like to use is available. After googling for an answer I > mysteriously found some way of listing all fonts available (now lost), which > showed a myriad of fonts - a *lot* more than in the GUI font picker utility. > Sadly, not every font was listed (for instance Monaco). > > So what I am wondering is how to add/select fonts that are not available in > the drop down menu. Nice if you also *know* it generally works, and not just > on the (type of) font you use ;-) > > The programming (mono)fonts I would like to be able to use in Emacs are: > Proggy Clean > Deja Vu Sans > Monaco > Trisk > Raize > > Please don't troll this into a "Why would you _ever_ choose font X? The one > that comes with Emacs is more than adequate!" discussion. This is a general > question, and does not really have much to do with the fonts in themselves, > although the *type* of font (raster vs vector) might. > > Thanks > Carl-Erik -- (. .) =ooO=(_)=Ooo===================================== Chris McMahan | first_initiallastname@one.dot.net =================================================