unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Michael Toomim <toomim@cs.washington.edu>
Cc: "15138@debbugs.gnu.org" <15138@debbugs.gnu.org>
Subject: bug#15138: Font selection error on OSX
Date: Wed, 28 Aug 2013 06:55:01 +0200	[thread overview]
Message-ID: <8B08A298-1326-4848-9619-FB4B122358D5@swipnet.se> (raw)
In-Reply-To: <787E6CC7-7963-44EA-A2EB-13C6D562F0EC@cs.washington.edu>

Hi.

27 aug 2013 kl. 21:08 skrev Michael Toomim <toomim@cs.washington.edu>:

> That sounds very strange indeed!  Thank you very much for investigating this.  Where in the source are you looking?
> 

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ärv <jan.h.d@swipnet.se> wrote:
> 
>> Hello. 
>> 
>> 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. 
>> 
>>    Jan D. 
>> 
>> 26 aug 2013 kl. 18:14 skrev Jan Djärv <jan.h.d@swipnet.se>:
>> 
>>> Hello.
>>> 
>>> 20 aug 2013 kl. 04:44 skrev Michael Toomim <toomim@cs.washington.edu>:
>>> 
>>>> 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.
>>>> 
>>>> In default OSX settings, you'll need to (setq ns-alternate-modifier 'none) before you can use option-8.
>>> 
>>> It is strictly not a font rendering error, but a font selection error.  The bullet is from a different font than the surrounding text.
>>> 
>>>  Jan D.
>>> 
>>>> On Aug 19, 2013, at 7:37 PM, Michael Toomim <toomim@gmail.com> wrote:
>>>> 
>>>>> 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)
>>>>> 
>>>>> The result is that some lines are too tall, and monospace layouts (like ASCII art) lose alignment.
>>>>> 
>>>>> Here is an example in three screenshots, where the "•" 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).
>>>>> 
>>>>> 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.
>>>>> 
>>>>> 
>>>>> <PastedGraphic-21.png>
>>>>> <PastedGraphic-19.png>
>>>>> <PastedGraphic-20.png>
>>> 






  reply	other threads:[~2013-08-28  4:55 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-20  2:37 bug#15138: Font rendering error on OSX Michael Toomim
2013-08-20  2:44 ` Michael Toomim
2013-08-26 16:14   ` Jan Djärv
2013-08-27 15:59     ` bug#15138: Font selection " Jan Djärv
2013-08-27 19:08       ` Michael Toomim
2013-08-28  4:55         ` Jan Djärv [this message]
2013-09-01 10:00           ` Jan Djärv
2013-09-01 18:51             ` Michael Toomim
2013-09-02 14:50             ` Kenichi Handa
2013-09-02 15:57               ` Jan Djärv
2013-09-03 12:10                 ` Kenichi Handa
2013-09-03 15:26                   ` Jan Djärv
2013-09-05 12:57                     ` Kenichi Handa
2013-09-05 16:56                       ` Jan Djärv
2013-09-02 18:34             ` Michael Toomim
2013-09-02 19:13               ` Jan Djärv
2013-09-02 17:29 ` bug#15138: revno: 114089 change causes cjk characters not shown correctly Darren Hoo
2013-09-03  7:00   ` Jan Djärv
2013-09-03 14:37     ` Darren Hoo
2013-09-03 15:18       ` Jan Djärv
2013-09-05 13:49         ` Kenichi Handa
2013-09-05 16:34           ` Jan Djärv
2013-09-05 17:04             ` Stefan Monnier
2013-09-05 17:25               ` Jan Djärv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8B08A298-1326-4848-9619-FB4B122358D5@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=15138@debbugs.gnu.org \
    --cc=toomim@cs.washington.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).