From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adrian Robert Newsgroups: gmane.emacs.bugs Subject: bug#3588: NS: wrong font chosen Date: Thu, 23 Jul 2009 11:01:36 -0400 Message-ID: <2FF44DE3-3B9E-453C-A304-3041AD432284@gmail.com> Reply-To: Adrian Robert , 3588@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248362366 25327 80.91.229.12 (23 Jul 2009 15:19:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jul 2009 15:19:26 +0000 (UTC) Cc: David Reitter To: 3588@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 23 17:18:54 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 1MU04K-0005rD-Iu for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jul 2009 17:18:53 +0200 Original-Received: from localhost ([127.0.0.1]:37571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU04K-0002xI-00 for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Jul 2009 11:18:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MU03B-00026Z-JY for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 11:17:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MU036-00020H-1r for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 11:17:40 -0400 Original-Received: from [199.232.76.173] (port=55664 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU035-0001zu-Ke for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 11:17:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44004) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MU035-0003al-2B for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2009 11:17:35 -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 n6NFHTV8030114; Thu, 23 Jul 2009 08:17:30 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n6NFA6pd028608; Thu, 23 Jul 2009 08:10:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Adrian Robert Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Thu, 23 Jul 2009 15:10:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3588 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Original-Received: via spool by 3588-submit@emacsbugs.donarmstrong.com id=B3588.124836132026854 (code B ref 3588); Thu, 23 Jul 2009 15:10:06 +0000 Original-Received: (at 3588) by emacsbugs.donarmstrong.com; 23 Jul 2009 15:02:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-px0-f199.google.com (mail-px0-f199.google.com [209.85.216.199]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6NF1tl9026847 for <3588@emacsbugs.donarmstrong.com>; Thu, 23 Jul 2009 08:01:56 -0700 Original-Received: by pxi37 with SMTP id 37so621893pxi.19 for <3588@emacsbugs.donarmstrong.com>; Thu, 23 Jul 2009 08:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date:cc :x-mailer; bh=1nchOECTbhDeVeuNPGQHbx34BLScB5Jsr5kzeer7XtQ=; b=Zq0vGON53wzi6QgJOnvyz/RSXJQgTw5FuhAOf6Wxzxjk9nhiuHY2NKvCctecAWRRx/ VlRPy5pb50/b5aX4+GEwZeoFux+7fTWFJuQ8tc/BfABgaLG65l9UHZmdBCImcSSM7vjc lqnJcEBsEzFKaY1B+NOcTpCinW8Uy+m1mvEXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:cc:x-mailer; b=Fdy6U/EV475/2UM9HZIWo86PpR7Ql5VMTRP5EhQlge0Sk5fKRV/tqSaV5d+omXq0gQ I7VXxAMHTWC4DQEIu2o23PIikT9WrrORH4RUOi7mLmt8aT4zpQwempDnfaa5LV9tIml1 tA4IZx+rzNkjEzGVuqX0z/etgY65VyXDEORYA= Original-Received: by 10.114.255.14 with SMTP id c14mr2612450wai.24.1248361309984; Thu, 23 Jul 2009 08:01:49 -0700 (PDT) Original-Received: from ?10.0.1.3? (dpc6745214221.direcpc.com [67.45.214.221]) by mx.google.com with ESMTPS id n9sm4022804wag.23.2009.07.23.08.01.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 23 Jul 2009 08:01:49 -0700 (PDT) X-Mailer: Apple Mail (2.935.3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 23 Jul 2009 11:17:40 -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:29582 http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3588 I generated a trace output from this for the current CVS version and believe that the problem is that: 1) the NS font driver is not responding to registries and 2) the core font code is not incorporating the fact that iso10646-1 is a superset of ascii or "ascii-0" into its logic Fix one of these and the problem goes away. To work on (1) would need a map converting from registries to scripts. I'd prefer to keep this ugliness to support low-level X-legacy font code out of the NS port, but there may be no avoiding it in the long run. To work on (2) requires some study of how the font search code in font/fontset.c works. It is possible that a clearly-written email to emacs-devel would attract Handa-san's attention and he could fix it quickly though.. nsfont: list for fontspec: # 2009-07-23 10:55:20.072 Emacs[16252:807] Request covering families for script: '' 2009-07-23 10:55:20.073 Emacs[16252:807] returning 203 families 2009-07-23 10:55:20.076 Emacs[16252:807] Got desc NSCTFontDescriptor <0x166b800> = { NSFontFamilyAttribute = "Lucida Calligraphy"; } and found 1 matching fonts from it: created font_entity: # Returning 1 entities. nsfont: list for fontspec: # nsfont: list for fontspec: # 2009-07-23 10:55:20.079 Emacs[16252:807] Request covering families for script: '' 2009-07-23 10:55:20.081 Emacs[16252:807] returning 203 families 2009-07-23 10:55:20.083 Emacs[16252:807] Got desc NSCTFontDescriptor <0x16b6390> = { NSFontFamilyAttribute = "Lucida Calligraphy"; } and found 1 matching fonts from it: created font_entity: # Returning 1 entities. nsfont: list for fontspec: # nsfont: list for fontspec: # 2009-07-23 10:55:20.087 Emacs[16252:807] Request covering families for script: '' 2009-07-23 10:55:20.088 Emacs[16252:807] returning 203 families 2009-07-23 10:55:20.102 Emacs[16252:807] Got desc NSCTFontDescriptor <0x16b6670> = { } and found 443 matching fonts from it: