From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#15138: Font selection error on OSX Date: Mon, 2 Sep 2013 17:57:14 +0200 Message-ID: <2ADB2AAF-31B8-4271-B4C4-6A26EDFB5858@swipnet.se> References: <87r4d7i8gt.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1378137497 19158 80.91.229.3 (2 Sep 2013 15:58:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Sep 2013 15:58:17 +0000 (UTC) Cc: toomim@cs.washington.edu, 15138@debbugs.gnu.org To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 02 17:58:18 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VGWWA-0008Bk-FW for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Sep 2013 17:58:18 +0200 Original-Received: from localhost ([::1]:40660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGWWA-0000r9-3N for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Sep 2013 11:58:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGWW2-0000qq-NG for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 11:58:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGWVv-0002ik-KR for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 11:58:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGWVv-0002ig-H3 for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 11:58:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VGWVu-0003jI-GQ for bug-gnu-emacs@gnu.org; Mon, 02 Sep 2013 11:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Sep 2013 15:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15138 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15138-submit@debbugs.gnu.org id=B15138.137813743314276 (code B ref 15138); Mon, 02 Sep 2013 15:58:02 +0000 Original-Received: (at 15138) by debbugs.gnu.org; 2 Sep 2013 15:57:13 +0000 Original-Received: from localhost ([127.0.0.1]:37666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGWV4-0003i8-Vq for submit@debbugs.gnu.org; Mon, 02 Sep 2013 11:57:12 -0400 Original-Received: from mail01.bdtv.se ([176.10.222.34]:53753) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1VGWUy-0003hm-Q4 for 15138@debbugs.gnu.org; Mon, 02 Sep 2013 11:57:06 -0400 Original-Received: (qmail 30153 invoked by uid 89); 2 Sep 2013 15:57:02 -0000 Original-Received: from h-46-59-42-57.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.57) by mail01.bdtv.se with ESMTPA; 2 Sep 2013 15:57:02 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 67CB21A038D; Mon, 2 Sep 2013 15:57:02 +0000 (UTC) In-Reply-To: <87r4d7i8gt.fsf@gnu.org> X-Mailer: Apple Mail (2.1508) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:77906 Archived-At: Hello. 2 sep 2013 kl. 16:50 skrev Kenichi Handa : > In article , Jan = Dj=E4rv writes: >=20 >> I've made a fix for this in the trunk, please try it. >=20 > Do you mean this change? >=20 > * fontset.c (face_for_char): Check char in the current face font = first > if HAVE_NS (Bug#15138). >=20 > I agree that this change improves font selection for > symbols, but it's not good for many scripts for which just > having a glyph is not enough. For instance, if the default > font has Hindi glyphs but doesn't have the OTF features for > Hindi script, we must find another proper font for Hindi. >=20 > How about modifying the current fontset mechanism as this? >=20 > (1) Allow t for FONT-SPEC of set-fontset-font to tell that > the default font should be tried. > (2) Modiyf the default fontset to include `t' as the > font-spec for scripts/characters for which the default > font is ok. libotf is genrelly not available on OSX, and probably not working with = GNUStep either (unless they use it at a lower level). So the OTF case = is not relevant to HAVE_NS anyway. For OSX the way to go is to use Core text for this. I think GNUStep is = looking at implementing Core text to replace their old display = postscript implementation. So this is basically a temporary fix. = Anyway, if you prefer OTF for some script, why not mark those scripts = with "prefer-otf" and check if any otf-features are available? HAVE_NS = will not have any OTF features. Jan D.