From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.help Subject: Re: Testing that a font is installed Date: Tue, 26 Feb 2008 03:05:57 -0800 (PST) Organization: http://groups.google.com Message-ID: <82397149-bd4b-4c13-8c94-18c7bf835335@p43g2000hsc.googlegroups.com> References: <87d4qlqnmh.fsf@mundaneum.com> <87zlto0z3e.fsf@mundaneum.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 1204026159 13225 80.91.229.12 (26 Feb 2008 11:42:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2008 11:42:39 +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 12:42:55 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 1JTyCn-0005GG-NZ for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Feb 2008 12:42:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTyCH-00063a-M9 for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Feb 2008 06:42:09 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!p43g2000hsc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 83.67.23.108 Original-X-Trace: posting.google.com 1204023958 890 127.0.0.1 (26 Feb 2008 11:05:58 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 26 Feb 2008 11:05:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p43g2000hsc.googlegroups.com; posting-host=83.67.23.108; posting-account=pYxWjwkAAACsHSUNDoi5N05LVCTP7PVM User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:156512 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:51881 Archived-At: On 26 Feb, 10:52, S=E9bastien Vauban wrote: > ,----[ *Help* ] > | name (opened by): consolas:pixelsize=3D17:foundry=3Dmicrosoft:we= ight=3Dmedium:slant=3Dr:width=3Dnormal > | full name: consolas:pixelsize=3D17:foundry=3Dmicrosoft:we= ight=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. 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")) As for XP, you appear not to be using the new font backend there. If you use the CVS version and configure with --enable-font-backend, 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...)