From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?S=E9bastien_Vauban?= Newsgroups: gmane.emacs.help Subject: Re: Testing that a font is installed Date: Tue, 26 Feb 2008 14:22:51 +0100 Organization: Sebastien Vauban Message-ID: <87d4qj26ok.fsf@mundaneum.com> References: <87d4qlqnmh.fsf@mundaneum.com> <87zlto0z3e.fsf@mundaneum.com> <82397149-bd4b-4c13-8c94-18c7bf835335@p43g2000hsc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1204033345 7872 80.91.229.12 (26 Feb 2008 13:42:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2008 13:42:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 26 14:42:50 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 1JU04X-0004L2-6p for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Feb 2008 14:42:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JU041-0002tF-FD for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Feb 2008 08:41:45 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!eweka.nl!hq-usenetpeers.eweka.nl!news.osn.de!diablo2.news.osn.de!212.27.60.9.MISMATCH!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!nerim.net!feed1.news.be.easynet.net!reader0.news.be.easynet.net!not-for-mail Original-Newsgroups: gnu.emacs.help X-Www-site: Under construction... User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:MZplffR3c1ncEIaqMAsiFLaRUp8= Original-Lines: 62 Original-NNTP-Posting-Date: 26 Feb 2008 13:22:51 GMT Original-NNTP-Posting-Host: 81.188.7.152 Original-X-Trace: 1204032171 reader0.news.be.easynet.net 1586 [::ffff:81.188.7.152]:16952 Original-X-Complaints-To: abuse@be.easynet.net Original-Xref: shelby.stanford.edu gnu.emacs.help:156517 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:51888 Archived-At: Hi Jason, >> ,----[ *Help* ] >> | name (opened by): consolas:pixelsize=3D17:foundry=3Dmicrosoft:= weight=3Dmedium:slant=3Dr:width=3Dnormal >> | full name: consolas:pixelsize=3D17:foundry=3Dmicrosoft:= weight=3Dmedium:slant=3Dr:width=3Dnormal >> | size: 9 >> | height: 20 >> | baseline-offset: 0 >> | relative-compose: 0 >> `---- > > It looks like you are using CVS emacs with the new font > backend. I'm using Emacs from the Ubuntu package provided by Alexandre Vassalotti (see http://peadrop.com/blog/2007/01/06/pretty-emacs/): GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.0) of 2007-12-30 on iridium > Currently, some of the old functions that deal with fonts are > still not using the new font backend, which is why > (x-family-fonts "Consolas") gives nil. I'd suggest using the > functions of the new font backend instead. > > (list-fonts (font-spec :family "Consolas")) It *works*, yes. > As for XP, you appear not to be using the new font backend > there. I'm using the EmacsW32 binary provided by OurComments.org. > If you use the CVS version and configure with > --enable-font-backend ... It seems that is not yet supported by EmacsW32. In fact, the latest Emacs binary available on their site is quite old: GNU Emacs 22.0.990.1 (i386-mingw-nt5.1.2600) of 2007-05-23 on LENNART-69DE564 (patched) > ... the results will be consistent and you will be able to use > "Consolas-8" on both platforms and get rid of the ugly (if > running-ms-windows...) As soon as the Windows binary gets updated (with the new font backend), I'll try your advice. Thank you very much! Seb --=20 S=E9bastien=A0Vauban