From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adrian Robert Newsgroups: gmane.emacs.devel Subject: Re: NS font case sensitivity Date: Fri, 19 Jun 2009 23:06:35 +0300 Message-ID: <8FED0638-F71F-469F-B191-EB87ADCE7BEC@gmail.com> References: <4A3A3D96.8090406@gnu.org> <4A3B210A.8060001@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245442024 23441 80.91.229.12 (19 Jun 2009 20:07:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Jun 2009 20:07:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 19 22:07:02 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MHkMW-0004sB-Ve for ged-emacs-devel@m.gmane.org; Fri, 19 Jun 2009 22:07:01 +0200 Original-Received: from localhost ([127.0.0.1]:44452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHkMW-0005i6-6U for ged-emacs-devel@m.gmane.org; Fri, 19 Jun 2009 16:07:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHkMD-0005UK-Q6 for emacs-devel@gnu.org; Fri, 19 Jun 2009 16:06:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHkM9-0005RG-0L for emacs-devel@gnu.org; Fri, 19 Jun 2009 16:06:41 -0400 Original-Received: from [199.232.76.173] (port=41804 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHkM8-0005RA-R5 for emacs-devel@gnu.org; Fri, 19 Jun 2009 16:06:36 -0400 Original-Received: from mail-ew0-f210.google.com ([209.85.219.210]:42686) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHkM7-00017n-ER; Fri, 19 Jun 2009 16:06:35 -0400 Original-Received: by ewy6 with SMTP id 6so2658192ewy.42 for ; Fri, 19 Jun 2009 13:06:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=tuPhiaCWQbUdQKdPDFZHrAzF+Ee7sy09tiww0rrd2Ok=; b=p50ZZfG/HVgzNfxiQvLbW1yxFEw5xQa3Gixmqfy9gxANpVPARUQdv0aUYuYYwhA5c2 ug5FOa3LpnRM3Nm2untel51dY5Sq6ptCjHEiTZptU9OH/U1HUdng7UtheH+cJx1yqx6b 8AibNaC5OeWZniWjpDaPh93IZJvppb7wncsSE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=p+rWZeCDaFqkAluFiOTdToQ/YIwa7i7XvUbf8gYuB1AW4KtVPdYdx2ABb7yuRv5lxX DClHqO41rDjozRoM4U4P9zmK2U/8qzjb10mLRnNOrUQCNwjYytgNhuzHsCVAbZGWixDI YlO7AMooEP5tpWZS656yJw2MTHrF7LdRtTQdE= Original-Received: by 10.210.12.18 with SMTP id 18mr1385652ebl.50.1245441993561; Fri, 19 Jun 2009 13:06:33 -0700 (PDT) Original-Received: from ?93.106.85.116? (gprs-prointernet-ff556a00-116.dhcp.inet.fi [93.106.85.116]) by mx.google.com with ESMTPS id 10sm148894eyz.21.2009.06.19.13.06.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 19 Jun 2009 13:06:32 -0700 (PDT) In-Reply-To: <4A3B210A.8060001@gnu.org> X-Mailer: Apple Mail (2.753.1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111598 Archived-At: On Jun 19, 2009, at 8:24 AM, Jason Rumney wrote: > Adrian Robert wrote: >> Jason Rumney gnu.org> writes: >> >> >>> Is there a good reason why the entries in face-alternative-font- >>> family-alist need to be case sensitive >>> on NS when they are not on other platforms? >>> >> >> Font family matching is case sensitive in the API used >> by the NS font driver. >> > > I'm not sure that is relevant here. This variable (actually it is > exposed to lisp as face-font-family-alternatives) is only used when > it has already been determined that the named font does not exist > in the system, so for example on other platforms if some lisp code > requests the font "Sans Serif" or "sans serif" and a font by that > name is not defined, "helv", "helvetica", "arial" and "fixed" are > tried as alternatives. But on NS, that list will only be used if > the lisp code requests that font with matching case. Logically, this behavior is consistent with family names being case sensitive -- the user customizing face-font-family-alternatives may want to specify different alternative lists for different family names, even if they differ only in their case. But practically, I doubt the situation will come up in that way -- so we might as well remove the ifdef to streamline the code if that is best.