From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sancho Neves-Graca Newsgroups: gmane.emacs.devel Subject: Re: Setting font to Lucida Grande on Mac OS X Date: Tue, 16 Sep 2003 03:19:38 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200309151509.h8FF95Z22652@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1063675398 15898 80.91.224.253 (16 Sep 2003 01:23:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2003 01:23:18 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Sep 16 03:23:17 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 19z4Ym-0002Qr-00 for ; Tue, 16 Sep 2003 03:23:16 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 19z4bf-0004RH-00 for ; Tue, 16 Sep 2003 03:26:15 +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 19z4Y5-0004Dx-MB for emacs-devel@quimby.gnus.org; Mon, 15 Sep 2003 21:22:33 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19z4Xb-0004DS-Ke for emacs-devel@gnu.org; Mon, 15 Sep 2003 21:22:03 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19z4X5-00040L-L9 for emacs-devel@gnu.org; Mon, 15 Sep 2003 21:22:02 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.22) id 19z4X5-0003xB-F2 for emacs-devel@gnu.org; Mon, 15 Sep 2003 21:21:31 -0400 Original-Received: from [80.139.204.60] (helo=koala.neves-graca.org) by mx20.gnu.org with esmtp (Exim 4.22) id 19z4VT-0001IV-0K for emacs-devel@gnu.org; Mon, 15 Sep 2003 21:19:51 -0400 Original-Received: from mail.neves-graca.org ([10.0.1.201]) by koala.neves-graca.org (8.12.9/8.12.9) with ESMTP id h8G1Je2k013764 for ; Tue, 16 Sep 2003 03:19:40 +0200 (CEST) Original-To: emacs-devel@gnu.org In-Reply-To: <200309151509.h8FF95Z22652@raven.dms.auburn.edu> X-Mailer: Apple Mail (2.552) 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:16408 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16408 Thanks to Luc and Andrew for their replies. My posting fell somewhere between a user problem and a development issue. From the point of view of a user, he would check on the documentation for how to set a desired font on a frame, namely the font used by his operating system per default. But as soon as it is apparent that Emacs does not seem to know about such font, it does become a development question. Andrew clarified that the Carbon implementation of Emacs does not directly make use of the native TrueType font. Thus fonts kept in /System/Library/Fonts are not directly used by Emacs. There does seem to me to be a scarce availablity of fonts for the Emacs Carbon implementation. The default font (Monaco) is in my opinion hard on the eyes either for source code or XML editing, because the vertical to horizontal ratio of a letter box is too high. Contrast that with the default font setting of Project Builder (Lucida Grande Regular 11 pt), where the letters are much more well-rounded and pleasing to the eye. One working solution is to use good old Courier ("-*-Courier-*-140-*"). I have now built Emacs on Mac OS X using X11 and the offered fonts are others than those that can be set with the Carbon implementation and again Courier looks the best compromise. Perhaps with the X11 build new fonts for Emacs can more readily be installed. On Monday, September 15, 2003, at 05:09 PM, Luc Teirlinck wrote: > Andrew Choi wrote: > > do something like this: > > M-x set-frame-font RET -apple-lucida > grande-medium-r-normal--12-0-75-75-m-0-mac-roman > > I guess that gets rid of Sancho's concrete problem, but it does not > answer the following question: > > Why does > > M-x set-frame-font RET -*-Courier-*-120-* > > work and > > M-x set-frame-font RET -*-Lucida Grande-*-120-* > > not? > > Maybe `-*-Lucida Grande-*-120-*' really is unmatched (I can not > check), but look at the example below. > > The difference between a user question belonging on `gnu.emacs.help' > and a question belonging on this site is that the answer to the former > could have been found in the standard documentation, in this case the > Emacs manual. > >> From (emacs)Font X : > > You can use wildcard patterns for the font name; then Emacs lets X > choose one of the fonts that match the pattern. > > Not quite. Emacs (or X) will not be able to find some fonts this way. > Neither will xlsfonts. I guess that if I were an expert on fonts, the > example below would be obvious to me, but I believe that being an > expert on fonts should not be a prerequisite to being able to specify > a font for Emacs. > > [bash2.05b.0 ~ 3 1] emacs-21.3.50 -fn > '-abisource-courier-bold-i-normal--17-120-*-*-*-*-*' > No fonts match `-abisource-courier-bold-i-normal--17-120-*-*-*-*-*' > [bash2.05b.0 ~ 3 2] emacs-21.3.50 -fn > '-abisource-courier-bold-i-normal--17-120-*-*-*-*-*-*' > [bash2.05b.0 ~ 3 3] > > Why does the second line work and the first one not? Does `*' not > match `*-*' anyway? It does for `-*-Courier-*-120-*'. > > Is it possible to tell in one or two lines in (emacs)Font X what is > going on here? Or am I missing something truly obvious (even to non > font experts)? > > Sincerely, > > Luc. > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://mail.gnu.org/mailman/listinfo/emacs-devel >