From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Toomim Newsgroups: gmane.emacs.bugs Subject: bug#15138: Font selection error on OSX Date: Sun, 1 Sep 2013 11:51:34 -0700 Message-ID: <997FE3A6-D4EE-474C-9883-1F28F647DCF7@cs.washington.edu> 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> <8B08A298-1326-4848-9619-FB4B122358D5@swipnet.se> 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 1378061534 10150 80.91.229.3 (1 Sep 2013 18:52:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Sep 2013 18:52:14 +0000 (UTC) Cc: 15138@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 01 20:52: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 1VGCky-000359-9Q for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Sep 2013 20:52:16 +0200 Original-Received: from localhost ([::1]:35027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGCkx-0004xh-W5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Sep 2013 14:52:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGCkq-0004xI-BU for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2013 14:52:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGCkl-0002sl-4A for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2013 14:52:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGCkk-0002sh-Up for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2013 14:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VGCkk-00006A-MI for bug-gnu-emacs@gnu.org; Sun, 01 Sep 2013 14:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Toomim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Sep 2013 18:52: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.1378061507317 (code B ref 15138); Sun, 01 Sep 2013 18:52:02 +0000 Original-Received: (at 15138) by debbugs.gnu.org; 1 Sep 2013 18:51:47 +0000 Original-Received: from localhost ([127.0.0.1]:35234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGCkV-000053-7c for submit@debbugs.gnu.org; Sun, 01 Sep 2013 14:51:47 -0400 Original-Received: from mail-pb0-f44.google.com ([209.85.160.44]:60952) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VGCkR-0008WO-G0 for 15138@debbugs.gnu.org; Sun, 01 Sep 2013 14:51:45 -0400 Original-Received: by mail-pb0-f44.google.com with SMTP id xa7so3884268pbc.3 for <15138@debbugs.gnu.org>; Sun, 01 Sep 2013 11:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.washington.edu; s=goo201206; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=10X5bxC7cW23VXS+onFlbG88pchCBp9GONoYvRS2ZTo=; b=GDLk0n0sdvI20UtOI1aB1aP5qnLCwnhDiiyVcW4DzMy5aXFv6QzPBQvvCA4a/5Yvri V2Ft+K6NtwJX8W8kTlcs4lSMKcH5uqLZQWTeCSBHylc6KaOFJ38s8Wjh7jcLor0twTfb fYWbHcHnODWO6aUn0Xcd7AjdOo6ckyZcqPbTI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=10X5bxC7cW23VXS+onFlbG88pchCBp9GONoYvRS2ZTo=; b=YNttg1zTQ5GL5dsLoHny576BTkNM8z42+nbmbCpkJEA6d2Ij5Fu+xErGk0PbSQFKrF DxKwzLKZjUKHOLoHcRiUdQWtijoEtS6aC/uG0J5GrN9IG20CLBjnk19rqzgJ43QENypv kd3Sf2SNMo/3wtARp13fo6yB5I1UZt2M8j6vzR9Vnm6QpMy9YkpTheu/gBtNu91Sor9z p61mb+UCmlHgToyjmc47SNT8Ux5mWy4jOM0aZAv75h7+qo2RFNfaoy47c5Hvg/1pljll WiGQydfcYx7xmCxsIBL14xlGpnMleSiwwQMj4FxtXDH3yklu300VI0RLlKoQnneZXmLu T1Sg== X-Gm-Message-State: ALoCoQkickE1xhT5kQ2+cfexy3iz8Iw+KFjyQ9ODyjKy48Jw7Z92Cj3xfFPDjGqD58w7lj8SMA1F X-Received: by 10.68.197.3 with SMTP id iq3mr16796220pbc.113.1378061497363; Sun, 01 Sep 2013 11:51:37 -0700 (PDT) Original-Received: from [10.0.1.123] (c-76-104-182-172.hsd1.wa.comcast.net. [76.104.182.172]) by mx.google.com with ESMTPSA id bg3sm11040436pbb.44.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 01 Sep 2013 11:51:36 -0700 (PDT) In-Reply-To: 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:77868 Archived-At: Fantastic! I will try it out and let you know. On Sep 1, 2013, at 3:00 AM, Jan Dj=E4rv wrote: > Hello. >=20 > I've made a fix for this in the trunk, please try it. >=20 > Thanks, >=20 > Jan D. >=20 > 28 aug 2013 kl. 06:55 skrev Jan Dj=E4rv : >=20 >> Hi. >>=20 >> 27 aug 2013 kl. 21:08 skrev Michael Toomim = : >>=20 >>> That sounds very strange indeed! Thank you very much for = investigating this. Where in the source are you looking? >>>=20 >>=20 >> Just tracing calls and parameters to functions in nsfont_driver in = nsfont.m. >>=20 >> Jan D. >>=20 >>> 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 >>=20 >=20