From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#20984: 25.0.50; Combining accents don't display properly in certain fonts Date: Wed, 15 Jul 2015 20:05:20 +0100 Message-ID: References: <83oajkbkbo.fsf@gnu.org> <87h9pc575g.fsf@gnu.org> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1436987182 32529 80.91.229.3 (15 Jul 2015 19:06:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jul 2015 19:06:22 +0000 (UTC) Cc: 20984@debbugs.gnu.org To: handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 15 21:06:13 2015 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 1ZFS0Q-0007EU-K4 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jul 2015 21:06:10 +0200 Original-Received: from localhost ([::1]:37129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFS0P-0004tI-UO for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jul 2015 15:06:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFS0M-0004tC-0l for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2015 15:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFS0I-0001M8-MP for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2015 15:06:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFS0I-0001M3-JH for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2015 15:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZFS0I-0004Au-8Q for bug-gnu-emacs@gnu.org; Wed, 15 Jul 2015 15:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jul 2015 19:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20984 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20984-submit@debbugs.gnu.org id=B20984.143698712816006 (code B ref 20984); Wed, 15 Jul 2015 19:06:02 +0000 Original-Received: (at 20984) by debbugs.gnu.org; 15 Jul 2015 19:05:28 +0000 Original-Received: from localhost ([127.0.0.1]:50359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFRzj-0004A3-KK for submit@debbugs.gnu.org; Wed, 15 Jul 2015 15:05:28 -0400 Original-Received: from mail-la0-f44.google.com ([209.85.215.44]:36090) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFRzi-00049q-9d for 20984@debbugs.gnu.org; Wed, 15 Jul 2015 15:05:26 -0400 Original-Received: by lagw2 with SMTP id w2so30429771lag.3 for <20984@debbugs.gnu.org>; Wed, 15 Jul 2015 12:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=EuJMYF3UT4FVh6w6Vmy0DAWhOaMPdHizVwB3d76zORM=; b=w64oaqc7lpuy4NTRhecoV1VIe90am6snwc3bGmR0VEkJaE4xjhuTJdADfIpf9HEWfo ljuMkRTu0avlGO+HrQ0a/kKMiaKUtqXp5LgNpr68sIX4fbwrskgm3PXGcf7VRAGDXbhU 7gKmRRL6nLpqL6aBPZLIyaT4j/9VTplRxJ4s1bZxIleiICMsFdb6dRk3HciCJ6xzuM3a x7Hizp1p56AiIvI7LcqjHnwAJPrza78ZzT5O7yDEtaMrs/aidpwQpOHNDkNEe5aImyy4 PPfdLkut5WGCdyObB5CdVqT1gCy2p20TTiHYq+DEGGZo5wp1DJy9CG7xcL73thOzz+Fg tsFg== X-Received: by 10.112.120.134 with SMTP id lc6mr5682914lbb.86.1436987120487; Wed, 15 Jul 2015 12:05:20 -0700 (PDT) Original-Received: by 10.25.214.133 with HTTP; Wed, 15 Jul 2015 12:05:20 -0700 (PDT) In-Reply-To: <87h9pc575g.fsf@gnu.org> X-Google-Sender-Auth: uwx8lzgHd3fz625PbUV42RAaLVo 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:104980 Archived-At: Indeed, this works. 2015-07-10 17:06 GMT+01:00 handa : > In article <83oajkbkbo.fsf@gnu.org>, Eli Zaretskii writes: > >> Btw, I wonder why xftfont and libotf don't do the same as Uniscribe, >> i.e. instruct Emacs to display the =C3=A0 character. This is what the >> composition data I see here says: > >> [0 1 97 231 8 1 7 12 4 nil] > >> This single vector tells Emacs to display one glyph, and 231 is its >> code in the font. > >> It is strange that libotf doesn't take this shortcut, although I'm >> quite sure a glyph for =C3=A0 is available both in DejaVu Sans Mono and = in >> Source Code Pro. But I don't know enough about libotf. > > Sorry, I found that my build of emacs-24.5 was without m17n-flt (and > libotf). So, the combining was done by Emacs itself using the function > compose-gstring-for-graphic. > > I've just rebuild emacs-24.5 with m17n-flt, and see the same problem as > the trunk, which means that the culprit may be in m17n-flt or libotf. > > So, I checked m17n-flt and found that the rule for combining latin > characters has a bug when a font has such OTF features as subs, sups. > > Please try the attached COMBINING.flt by these steps: > 1. make the directory ~/.m17n.d > 2. put COMBINING.flt under that directory. > 3. run emacs > > By the why, the reason of m17n-flt/libotf not taking the shortcut above > is that the Source Code Pro font doesn't have such a feature. I suspect > Uniscribe has a special code for using precomposed glyph without asking > a font about its features. So, perhaps, even with TTF font (i.e. a font > of no OTF features), Uniscribe can display a-grave sequence with the > precomposed glyph. > > --- > K. Handa > handa@gnu.org >