From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Setting font to Lucida Grande on Mac OS X Date: Sun, 14 Sep 2003 23:10:28 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200309150410.h8F4ASP21082@raven.dms.auburn.edu> References: <78898570-E708-11D7-ABC2-000393661894@mail.neves-graca.org> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1063599236 17392 80.91.224.253 (15 Sep 2003 04:13:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2003 04:13:56 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Sep 15 06:13:54 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ykkM-0003zB-00 for ; Mon, 15 Sep 2003 06:13:54 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 19ykmq-0001vU-00 for ; Mon, 15 Sep 2003 06:16:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19ykkH-0002Bi-Hn for emacs-devel@quimby.gnus.org; Mon, 15 Sep 2003 00:13:49 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19ykkC-00029I-6R for emacs-devel@gnu.org; Mon, 15 Sep 2003 00:13:44 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19ykk6-0001yF-17 for emacs-devel@gnu.org; Mon, 15 Sep 2003 00:13:38 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.22) id 19ykk5-0001xO-Jo for emacs-devel@gnu.org; Mon, 15 Sep 2003 00:13:37 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.9/8.12.9) with ESMTP id h8F4DaeQ014784; Sun, 14 Sep 2003 23:13:36 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id h8F4ASP21082; Sun, 14 Sep 2003 23:10:28 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: sancho@neves-graca.org In-reply-to: <78898570-E708-11D7-ABC2-000393661894@mail.neves-graca.org> (message from Sancho Neves-Graca on Mon, 15 Sep 2003 01:09:19 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16394 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16394 Sancho Neves-Graca wrote: But putting in ~/.emacs (set-default-font "-*-Lucida Grande-*-120-*") returns Font '-*-Lucida Grande-*-120-*' is not defined. Is Lucida Grande available for Emacs on Mac OS X? If so, what is its identifier? The actual answer to this may be a little bit more complicated than I thought at first. As I already said, I do not have Lucida Grande, but I believe the situation must be very similar to `century schoolbook'. >>From one of my previous messages: [bash2.05b.0 ~ 3 6] xlsfonts -fn '-*-century schoolbook-*' -abisource-century schoolbook-bold-i-normal--0-0-0-0-p-0-iso8859-1 -abisource-century schoolbook-bold-r-normal--0-0-0-0-p-0-iso8859-1 -abisource-century schoolbook-regular-i-normal--0-0-0-0-p-0-iso8859-1 -abisource-century schoolbook-regular-r-normal--0-0-0-0-p-0-iso8859-1 [bash2.05b.0 ~ 3 7] xlsfonts -fn '-*-century schoolbook-*-120-*' xlsfonts: pattern "-*-century schoolbook-*-120-*" unmatched [bash2.05b.0 ~ 3 8] Take the first entry xlsfonts found: -abisource-century schoolbook-bold-i-normal--0-0-0-0-p-0-iso8859-1 I figured out using `xfd' (may or may not be available on Mac OS X) that this font is identical with: '-abisource-century schoolbook-regular-r-normal--17-120-100-100-p-94-iso8859-1' `emacs-21.3.50 -fn' works perfectly with the last expression. However, if you put *'s in the wrong places in the last expression, in particular '-*-century schoolbook-*-120-*', neither emacs-21.3.50 -fn 'stuff-with-*'s' nor xlsfonts -fn 'stuff-with-*'s' believe there is _any_ matching font. I believe this has something to do with the following quote from the xlsfonts man page: -o This option indicates that xlsfonts should do an OpenFont (and QueryFont, if appropriate) rather than a ListFonts. This is useful if ListFonts or ListFontsWithInfo fail to list a known font (as is the case with some scaled font systems). The -o option does not help in this case, however, still no matches. As xlsfonts can not handle this either, I do not believe that this is a bug in Emacs, but I am not a real expert in these matters. Sincerely, Luc.