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: Wed, 28 Aug 2013 06:55:01 +0200 Message-ID: <8B08A298-1326-4848-9619-FB4B122358D5@swipnet.se> References: <2E6D0B96-1154-4081-BE8A-3267F1526D90@gmail.com> <1C1B009F-EA17-4FA7-BBB9-88CA3DA93A3A@gmail.com> <537169BD-13C7-42AF-8866-272460C13F3E@swipnet.se> <787E6CC7-7963-44EA-A2EB-13C6D562F0EC@cs.washington.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1377665775 21632 80.91.229.3 (28 Aug 2013 04:56:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Aug 2013 04:56:15 +0000 (UTC) Cc: "15138@debbugs.gnu.org" <15138@debbugs.gnu.org> To: Michael Toomim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 28 06:56:16 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 1VEXnk-0006uY-JT for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Aug 2013 06:56:16 +0200 Original-Received: from localhost ([::1]:60331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEXnk-00030X-AZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Aug 2013 00:56:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEXnc-0002za-Ln for bug-gnu-emacs@gnu.org; Wed, 28 Aug 2013 00:56:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEXnX-00016S-Eg for bug-gnu-emacs@gnu.org; Wed, 28 Aug 2013 00:56:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEXnX-00016M-Bi for bug-gnu-emacs@gnu.org; Wed, 28 Aug 2013 00:56:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VEXnW-0004hk-RP for bug-gnu-emacs@gnu.org; Wed, 28 Aug 2013 00:56: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: Wed, 28 Aug 2013 04:56: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.137766570518012 (code B ref 15138); Wed, 28 Aug 2013 04:56:02 +0000 Original-Received: (at 15138) by debbugs.gnu.org; 28 Aug 2013 04:55:05 +0000 Original-Received: from localhost ([127.0.0.1]:60261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VEXma-0004gR-An for submit@debbugs.gnu.org; Wed, 28 Aug 2013 00:55:04 -0400 Original-Received: from mail01.bdtv.se ([176.10.222.34]:51153) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1VEXmU-0004fu-PL for 15138@debbugs.gnu.org; Wed, 28 Aug 2013 00:55:00 -0400 Original-Received: (qmail 16938 invoked by uid 89); 28 Aug 2013 04:54:56 -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; 28 Aug 2013 04:54:56 -0000 Original-Received: from [172.20.199.13] (unknown [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id BB2881A0090; Wed, 28 Aug 2013 04:54:56 +0000 (UTC) In-Reply-To: <787E6CC7-7963-44EA-A2EB-13C6D562F0EC@cs.washington.edu> 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:77782 Archived-At: Hi. 27 aug 2013 kl. 21:08 skrev Michael Toomim : > That sounds very strange indeed! Thank you very much for = investigating this. Where in the source are you looking? >=20 Just tracing calls and parameters to functions in nsfont_driver in = nsfont.m. Jan D. > On Aug 27, 2013, at 8:59 AM, Jan Dj=E4rv wrote: >=20 >> Hello.=20 >>=20 >> This seems to be in the general font code. It does not even try to = check if that glyph is present in the current font (it is), but instead = asks for a font with script symbol. The logic seems strange to me.=20 >>=20 >> Jan D.=20 >>=20 >> 26 aug 2013 kl. 18:14 skrev Jan Dj=E4rv : >>=20 >>> Hello. >>>=20 >>> 20 aug 2013 kl. 04:44 skrev Michael Toomim = : >>>=20 >>>> A simple way to reproduce this bug is to press option-8 (inserts a = bullet on a mac) anywhere in a text buffer. You can see the line grow = taller. >>>>=20 >>>> In default OSX settings, you'll need to (setq ns-alternate-modifier = 'none) before you can use option-8. >>>=20 >>> It is strictly not a font rendering error, but a font selection = error. The bullet is from a different font than the surrounding text. >>>=20 >>> Jan D. >>>=20 >>>> On Aug 19, 2013, at 7:37 PM, Michael Toomim = wrote: >>>>=20 >>>>> Some extended characters are rendered incorrectly in the new Cocoa = 24.3 emacs on OSX. They are rendered: >>>>> - too small >>>>> - too tall (forcing an increase in line-height of a pixel or two) >>>>>=20 >>>>> The result is that some lines are too tall, and monospace layouts = (like ASCII art) lose alignment. >>>>>=20 >>>>> Here is an example in three screenshots, where the "=95" bullet = character is rendered incorrectly. The first screenshot shows the bug on = the current release. You can see that the center line takes up too much = vertical space, and not enough horizontal space. This is a monospace = font (apple monaco). >>>>>=20 >>>>> The second and third show the correct rendering. The second is an = older emacs build I have that rendered text with Carbon. The third is = Apple's native TextEdit.app, for reference. >>>>>=20 >>>>>=20 >>>>> >>>>> >>>>> >>>=20