From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: bug#3174: NS font selection still broken Date: Fri, 30 Oct 2009 09:44:59 -0400 Message-ID: References: <5AA4186F-3AFD-482E-AC4F-F60E9E2517B0@gmail.com> Reply-To: David Reitter , 3174@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=windows-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1256915334 15996 80.91.229.12 (30 Oct 2009 15:08:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Oct 2009 15:08:54 +0000 (UTC) Cc: 3174@emacsbugs.donarmstrong.com, Christopher Menzel To: Adrian Robert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 30 16:08:46 2009 Return-path: Envelope-to: geb-bug-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 1N3t5g-0007Ge-PU for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Oct 2009 16:08:37 +0100 Original-Received: from localhost ([127.0.0.1]:50668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3t5g-0006KR-7i for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Oct 2009 11:08:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3s8U-00033k-Fn for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2009 10:07:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3s8P-000312-Nb for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2009 10:07:25 -0400 Original-Received: from [199.232.76.173] (port=40983 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3s8N-00030W-Rl for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2009 10:07:20 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38512) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N3s8N-0008Mf-79 for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2009 10:07:19 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9UE7EaL032446; Fri, 30 Oct 2009 07:07:14 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9UDt428030511; Fri, 30 Oct 2009 06:55:04 -0700 Resent-Date: Fri, 30 Oct 2009 06:55:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: David Reitter Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com 2Resent-Date: Fri, 30 Oct 2009 13:55:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3174 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Original-Received: via spool by 3174-submit@emacsbugs.donarmstrong.com id=B3174.125691031229822 (code B ref 3174); Fri, 30 Oct 2009 13:55:04 +0000 Original-Received: (at 3174) by emacsbugs.donarmstrong.com; 30 Oct 2009 13:45:12 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-yx0-f190.google.com (mail-yx0-f190.google.com [209.85.210.190]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9UDjAjf029672 for <3174@emacsbugs.donarmstrong.com>; Fri, 30 Oct 2009 06:45:11 -0700 Original-Received: by yxe28 with SMTP id 28so2715831yxe.19 for <3174@emacsbugs.donarmstrong.com>; Fri, 30 Oct 2009 06:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=gd2iLXUu9qXiTAQwommB7faqRCO0wUkj+ws1VeGxaus=; b=oW1INT4rO4Czpyp5B0o98CgAm137S2Yxm4pr1s5R/ehEkm8Vw4i4NkdQu4xGuw0J7w fGuPRho0g5U9SDCqy0Lsnz113GaHZbCA+zg0LpzTCV8Jy3ZEbG+yZjhJja5HnwfKDGF2 muO5XPVyEdll9JE4lkhQMKpLDZ2xe+YZ5aPVQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=eSsN50kDLB6Z99P18V/Fnti2aMvZ+X6q/AKOlmL+khziBHsepkdOf75DI6Lij6RIU+ nEra745HjB+EdUz/KDzldMeNHtgSjxeV2mK6v8SYa/Vt+9nTxIczPUB+r3nn8QB8vzBi 1QlLs6aZQJ000eCUsPEsxumGMTIM7DUxqsrW0= Original-Received: by 10.90.9.23 with SMTP id 23mr4472993agi.51.1256910304568; Fri, 30 Oct 2009 06:45:04 -0700 (PDT) Original-Received: from ?192.168.2.10? (c-67-186-35-45.hsd1.pa.comcast.net [67.186.35.45]) by mx.google.com with ESMTPS id 22sm1109402ywh.0.2009.10.30.06.45.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Oct 2009 06:45:02 -0700 (PDT) In-Reply-To: <5AA4186F-3AFD-482E-AC4F-F60E9E2517B0@gmail.com> X-Mailer: Apple Mail (2.1076) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 30 Oct 2009 10:07:25 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32289 Archived-At: Adrian, > For differences from w32 or x11 that show up on Emacs 23, font =20 > selection is handled through ns_findfonts() in nsfont.m. The =20 > rewrite of a few months ago brought this mostly in line with other =20 > ports, but some crucial differences may still remain (though I'm not =20= > sure what they are). I'm afraid it will take a fairly significant =20 > effort at turning on tracing in that file (NSFONT_TRACE at the top), =20= > and working through the logic of what font.c is doing and what =20 > nsfont.m is doing, for the characters in question. I can't think of =20= > any shortcuts, and I have to admit these mathematical symbol ranges =20= > have long been a problem eluding my efforts, though I believe the =20 > rewrite lessened the number of erroneously-handled characters. > > The actual "bugs" could be either in nsfont.m or font.c -- sometimes =20= > in the past nsfont's different implementation sometimes revealed =20 > problems in font.c that did not affect other ports. (Of course the =20= > nsfont.m impl should continue to be normalized to the other ports so =20= > such bugs can remain mercifully hidden.) I've been looking at the trace from nsfont and, more importantly, `=20 (reverse font-log)' from font.c. To display [=93] 201C LEFT DOUBLE QUOTATION MARK, we get the log below =20= (after adding a few items to log). At first (top of list), it tries to find "Apple Lucida Grande" and =20 "Lucida Grande" with a particular "registry" and for the symbol =20 script. This fails, because the `val' variable in font_list_entities =20= ends up being Qnil. I don't quite see, why. Possibilities are that the [part of the] font =20= isn't loaded and/or caching fails, but I don't really understand what =20= the code after the call to font_get_cache is supposed to be doing. =20 Can you see the problem? If not, feel free to say so and I'll ask -=20 devel. I did try adjusting script-representative-chars to make sure that the =20= example characters listed for `symbol' are all in Lucida. This had no =20= effect. Thanks - D ((default\ fontset:\ font\ for 8220 nil) (finding nil nil) (ASIZE\ \(val\)\ =3D<\ 0\ not\ adding\ to\ list [] nil) (list "-apple-Lucida Grande-*-iso10646-1:script=3Dsymbol" nil) (font_list_entities\ returned\ nil nil nil) (ASIZE\ \(val\)\ =3D<\ 0\ not\ adding\ to\ list [] nil) (list "-*-Lucida Grande-*-iso10646-1:script=3Dsymbol" nil) (font_list_entities\ returned\ nil nil nil) (ASIZE\ \(val\)\ >\ 0\ adding\ to\ list [# # # # # # # # # # # #] nil) (list "-apple-*-iso10646-1:script=3Dsymbol" ["-apple-Apple_Symbols-medium-normal-normal-*-p-0-iso10646-1" =20= "-apple-Apple_Symbols-medium-normal-normal-*-p-0-iso10646-1" "-apple-=20 MS_PMincho-medium-normal-normal-*-p-0-iso10646-1" "-apple-MS_PGothic-=20 medium-normal-normal-*-p-0-iso10646-1" "-apple-MS_Mincho-medium-normal-=20= normal-*-p-0-iso10646-1" "-apple-MS_Gothic-medium-normal-normal-*-p-0-=20= iso10646-1" "-apple-Menlo-bold-italic-normal-*-m-0-iso10646-1" "-apple-=20= Menlo-bold-normal-normal-*-m-0-iso10646-1" "-apple-Menlo-medium-italic-=20= normal-*-m-0-iso10646-1" "-apple-Menlo-medium-normal-normal-*-m-0-=20 iso10646-1" "-apple-Code2000-medium-normal-normal-*-p-0-iso10646-1" "-=20= apple-Arial_Unicode_MS-medium-normal-normal-*-p-0-iso10646-1"]) (sort-by "-*-medium-normal-normal-*-13-*" "ns:-apple-Apple_Symbols-=20 medium-normal-normal-*-p-0-iso10646-1") (finding\.\.\.finished\ early nil nil) (open "-apple-Apple_Symbols-medium-normal-normal-*-p-0-=20 iso10646-1:script=3Dsymbol" "nil:-apple-Apple_Symbols-medium-normal-=20 normal-*-13-*-p-0-iso10646-1"))=