From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Setting font to Lucida Grande on Mac OS X Date: Tue, 16 Sep 2003 12:54:03 +0900 Organization: The XEmacs Project Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87y8wpie1w.fsf@tleepslib.sk.tsukuba.ac.jp> References: <200309151509.h8FF95Z22652@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063684654 26668 80.91.224.253 (16 Sep 2003 03:57:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2003 03:57:34 +0000 (UTC) Cc: akochoi@shaw.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Sep 16 05:57:32 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 19z6y4-00073Y-00 for ; Tue, 16 Sep 2003 05:57:32 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 19z710-0007Cy-00 for ; Tue, 16 Sep 2003 06:00:34 +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 19z6wf-0004Sm-J1 for emacs-devel@quimby.gnus.org; Mon, 15 Sep 2003 23:56:05 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19z6vP-0003uR-1l for emacs-devel@gnu.org; Mon, 15 Sep 2003 23:54:47 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19z6vD-0003bu-9a for emacs-devel@gnu.org; Mon, 15 Sep 2003 23:54:36 -0400 Original-Received: from [130.158.98.109] (helo=tleepslib.sk.tsukuba.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.22) id 19z6uy-0003Cj-QZ for emacs-devel@gnu.org; Mon, 15 Sep 2003 23:54:21 -0400 Original-Received: from steve by tleepslib.sk.tsukuba.ac.jp with local (Exim 3.36 #1 (Debian)) id 19z6uh-0005E0-00; Tue, 16 Sep 2003 12:54:03 +0900 Original-To: Luc Teirlinck In-Reply-To: <200309151509.h8FF95Z22652@raven.dms.auburn.edu> (Luc Teirlinck's message of "Mon, 15 Sep 2003 10:09:05 -0500 (CDT)") User-Agent: Gnus/5.1001 (Gnus v5.10.1) XEmacs/21.4 (Portable Code, linux) 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:16413 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16413 >>>>> "Luc" == Luc Teirlinck writes: Luc> Maybe `-*-Lucida Grande-*-120-*' really is unmatched (I can Luc> not check), but look at the example below. I believe this is probably a bug in the relevant Xlib or server routines. The problem is mostly like due to the fact that '*' can match any number of characters, and does not respect field boundaries. Furthermore, the standard is not terribly specific about how to deal with target font names which are themselves wildcards (ie, scalable, with 0 for all dimensions. If you want to have a reasonably good expectation of getting a match, use a fully qualified XLFD. xfontsel is a convenient way to produce these. The technical definition is more complex, but you'll hardly ever go wrong if you think of "fully qualified XLFD" as "containing exactly 14 hyphens, and starting with a hyphen". Especially in a world where we (at least sometimes) ask Windows and Mac users to specify XLFDs for their fonts, I think this should be in the Emacs manual. On '-abisource-courier-bold-i-normal--17-120-*-*-*-*-*' vs. '-abisource-courier-bold-i-normal--17-120-*-*-*-*-*-*': Luc> Why does the second line work and the first one not? Does Luc> `*' not match `*-*' anyway? It does for Luc> `-*-Courier-*-120-*'. Experience shows that different implementations of X11 do different things given the same set of fonts and the same specs. So you may as well just chalk it up to "implementation dependent, and therefore potentially random, behavior". Use the 14-hyphen XLFD. -- Institute of Policy and Planning Sciences http://turnbull.sk.tsukuba.ac.jp University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN Ask not how you can "do" free software business; ask what your business can "do for" free software.