GNU bug report logs - #15138
Font rendering error on OSX

Previous Next

Package: emacs;

Reported by: Michael Toomim <toomim <at> cs.washington.edu>

Date: Tue, 20 Aug 2013 06:32:01 UTC

Severity: normal

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Kenichi Handa <handa <at> gnu.org>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 15138-done <at> debbugs.gnu.org, darren.hoo <at> gmail.com
Subject: bug#15138: revno: 114089 change causes cjk characters not shown correctly
Date: Thu, 05 Sep 2013 22:49:55 +0900
In article <7FEF1248-81A6-4E06-8F08-29A02CE72E00 <at> swipnet.se>, Jan Djärv <jan.h.d <at> swipnet.se> writes:

> Good, closing.

I have another question about this change.

      /* Fonts often have characters in other scripts, like symbol, even if they
         don't match script: symbol.  So check if the character is present
         in the current face first.  Only enable for NS for now, but should
         perhaps be general?  */
      Lisp_Object font_object;
      XSETFONT (font_object, face->font);
      if (font_has_char (f, font_object, c)) return face->id;

With it, face->font may vary depending on the preceding
character.  So if you have these lines:
  abc•
  あいう•
the two "•"s will be displayed by different fonts.  Isn't it
better to try the font selected for ASCII as this:

      XSETFONT (font_object, face->ascii_face->font);

---
Kenichi Handa
handa <at> gnu.org




This bug report was last modified 11 years and 260 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.