GNU bug report logs - #20984
25.0.50; Combining accents don't display properly in certain fonts

Previous Next

Package: emacs;

Reported by: bruce.connor.am <at> gmail.com

Date: Sun, 5 Jul 2015 16:25:02 UTC

Severity: normal

Found in version 25.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20984 in the body.
You can then email your comments to 20984 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Sun, 05 Jul 2015 16:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to bruce.connor.am <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 05 Jul 2015 16:25:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; Combining accents don't display properly in certain fonts
Date: Sun, 5 Jul 2015 17:24:32 +0100
[Message part 1 (text/plain, inline)]
Start emacs -Q then evaluate the following in the *scratch* (assuming
you have this font installed)

(set-face-attribute 'default nil :font "SourceCodePro Medium")
(insert (format "a%c" 768))

The result should look like "à", but instead, it looks like "a`" where
the letter "a" is actually distorted and shifted up (image attached).
The same happens with other combining symbols.

On the other hand, if I type a second letter "a", then the grave wil be
placed over it, while the first letter stays distorted.

Again, this is easier to understand with the attached image. The
second and third lines of the image show the weird behavior. The first
line is correct, I think.
[screenshot-2015-07-05--162913.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Sun, 05 Jul 2015 16:34:01 GMT) Full text and rfc822 format available.

Message #8 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: bruce.connor.am <at> gmail.com
Cc: 20984 <at> debbugs.gnu.org
Subject: Re: bug#20984: 25.0.50;
 Combining accents don't display properly in certain fonts
Date: Sun, 05 Jul 2015 19:33:33 +0300
> Date: Sun, 5 Jul 2015 17:24:32 +0100
> From: Artur Malabarba <bruce.connor.am <at> gmail.com>
> 
> Start emacs -Q then evaluate the following in the *scratch* (assuming
> you have this font installed)
> 
> (set-face-attribute 'default nil :font "SourceCodePro Medium")
> (insert (format "a%c" 768))
> 
> The result should look like "à", but instead, it looks like "a`" where
> the letter "a" is actually distorted and shifted up (image attached).
> The same happens with other combining symbols.

Do both glyphs come from the same font, according to "C-u C-x ="?  (I
don't have that font installed to try that myself.)

Emacs can only compose characters if their glyphs are covered by the
same font.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Sun, 05 Jul 2015 16:43:02 GMT) Full text and rfc822 format available.

Message #11 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20984 <at> debbugs.gnu.org
Subject: Re: bug#20984: 25.0.50; Combining accents don't display properly in
 certain fonts
Date: Sun, 5 Jul 2015 17:42:45 +0100
2015-07-05 17:33 GMT+01:00 Eli Zaretskii <eliz <at> gnu.org>:
>> Date: Sun, 5 Jul 2015 17:24:32 +0100
>> From: Artur Malabarba <bruce.connor.am <at> gmail.com>
>>
>> Start emacs -Q then evaluate the following in the *scratch* (assuming
>> you have this font installed)
>>
>> (set-face-attribute 'default nil :font "SourceCodePro Medium")
>> (insert (format "a%c" 768))
>>
>> The result should look like "à", but instead, it looks like "a`" where
>> the letter "a" is actually distorted and shifted up (image attached).
>> The same happens with other combining symbols.
>
> Do both glyphs come from the same font, according to "C-u C-x ="?  (I
> don't have that font installed to try that myself.)
>
> Emacs can only compose characters if their glyphs are covered by the
> same font.

Yes. Investigating the weird combination yields this on the description buffer:

Composed with the following character(s) "̀" using this font:
  xft:-adobe-Source Code Pro-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1
by these glyphs:
  [0 1 0 626 8 1 6 8 -3 nil]
  [0 1 0 734 0 1 5 11 -9 [0 0 0]]

And investigating the characters individually yields the same font for both

    xft:-adobe-Source Code
Pro-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1 (#x1C)
    xft:-adobe-Source Code
Pro-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1 (#x2DD)

Should I paste the full *help* buffer here?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Sun, 05 Jul 2015 17:03:02 GMT) Full text and rfc822 format available.

Message #14 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: bruce.connor.am <at> gmail.com, Kenichi Handa <handa <at> gnu.org>
Cc: 20984 <at> debbugs.gnu.org
Subject: Re: bug#20984: 25.0.50;
 Combining accents don't display properly in certain fonts
Date: Sun, 05 Jul 2015 20:01:47 +0300
> Date: Sun, 5 Jul 2015 17:42:45 +0100
> From: Artur Malabarba <bruce.connor.am <at> gmail.com>
> Cc: 20984 <at> debbugs.gnu.org
> 
> > Do both glyphs come from the same font, according to "C-u C-x ="?  (I
> > don't have that font installed to try that myself.)
> >
> > Emacs can only compose characters if their glyphs are covered by the
> > same font.
> 
> Yes. Investigating the weird combination yields this on the description buffer:
> 
> Composed with the following character(s) "̀" using this font:
>   xft:-adobe-Source Code Pro-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1
> by these glyphs:
>   [0 1 0 626 8 1 6 8 -3 nil]
>   [0 1 0 734 0 1 5 11 -9 [0 0 0]]
> 
> And investigating the characters individually yields the same font for both
> 
>     xft:-adobe-Source Code
> Pro-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1 (#x1C)
>     xft:-adobe-Source Code
> Pro-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1 (#x2DD)
> 
> Should I paste the full *help* buffer here?

There's no need, thanks.  But it would be interesting, I think, to see
the output of "C-u C-x =" for the same pair of inserted characters,
but with your default font (assuming it is capable of displaying the
accented a).

Anyway, I've tried this on my system, after installing version 1.020
of the font, and I don't see the problem you report: the 2 characters
are composed and displayed as you'd expect.

So I think this might be some issue with the shaping engine you are
using -- do you have the latest versions of the libraries mentioned in
INSTALL, under "Complex Text Layout support libraries"?  If you do,
perhaps Handa-san could comment on this.

For the record, my system uses the Windows standard Uniscribe shaping
engine, and the composition information it returns is different:

  Composed with the following character(s) "̀" using this font:
    uniscribe:-outline-Source Code Pro Medium-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1
  by these glyphs:
    [0 1 97 231 8 1 7 12 4 nil]





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Sun, 05 Jul 2015 18:03:02 GMT) Full text and rfc822 format available.

Message #17 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20984 <at> debbugs.gnu.org, Kenichi Handa <handa <at> gnu.org>
Subject: Re: bug#20984: 25.0.50; Combining accents don't display properly in
 certain fonts
Date: Sun, 5 Jul 2015 19:02:19 +0100
>> Should I paste the full *help* buffer here?
>
> There's no need, thanks.  But it would be interesting, I think, to see
> the output of "C-u C-x =" for the same pair of inserted characters,
> but with your default font (assuming it is capable of displaying the
> accented a).
>

With my default font (DejaVu Sans Mono), which does correctly display
the grave a, describing the combined characters gives the following

Composed with the following character(s) "̀" using this font:
  xft:-unknown-DejaVu Sans Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1
by these glyphs:
  [0 1 97 68 9 1 8 11 0 nil]
  [0 1 768 648 0 2 6 12 -9 [-9 0 0]]

And describing them individually gives the following

xft:-unknown-DejaVu Sans
Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1 (#x44)
xft:-unknown-DejaVu Sans
Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1 (#x288)

> Anyway, I've tried this on my system, after installing version 1.020
> of the font, and I don't see the problem you report: the 2 characters
> are composed and displayed as you'd expect.
>
> So I think this might be some issue with the shaping engine you are
> using -- do you have the latest versions of the libraries mentioned in
> INSTALL, under "Complex Text Layout support libraries"?  If you do,
> perhaps Handa-san could comment on this.

Out of the 3 mentioned there ("m17n-db", "libm17n-flt", "libotf")
- I see the following 2 installed (and up-to-date) on my system
(arch): m17n-db, m17n-lib, libotf.
- Looking through my emacs's config.log, I see reports that the
following two were detected: M17N_FLT, LIBOTF.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Mon, 06 Jul 2015 15:00:05 GMT) Full text and rfc822 format available.

Message #20 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: handa <handa <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20984 <at> debbugs.gnu.org, bruce.connor.am <at> gmail.com
Subject: Re: bug#20984: 25.0.50;
 Combining accents don't display properly in certain fonts
Date: Mon, 06 Jul 2015 23:59:14 +0900
In article <83fv52wnb8.fsf <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org> writes:

> > Yes. Investigating the weird combination yields this on the description buffer:
> > Composed with the following character(s) "̀" using this font:
> >   xft:-adobe-Source Code Pro-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1
> > by these glyphs:
> >   [0 1 0 626 8 1 6 8 -3 nil]
> >   [0 1 0 734 0 1 5 11 -9 [0 0 0]]

I tried that font on my Lubuntu system with Emacs 24.5 and the latest
trunk version.  I see no problem with 24.5, i.e. a-grave is correctly
displayed, but see the same problem as yours with trunk version.

So, it seems that something was broken recently.

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




Added indication that bug 20984 blocks19759 Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 06 Jul 2015 15:53:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Mon, 06 Jul 2015 16:59:02 GMT) Full text and rfc822 format available.

Message #25 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Kenichi Handa <handa <at> gnu.org>
Cc: 20984 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#20984: 25.0.50; Combining accents don't display properly in
 certain fonts
Date: Mon, 6 Jul 2015 17:58:14 +0100
[Message part 1 (text/plain, inline)]
> I tried that font on my Lubuntu system with Emacs 24.5 and the latest
> trunk version.  I see no problem with 24.5, i.e. a-grave is correctly
> displayed, but see the same problem as yours with trunk version.
>
> So, it seems that something was broken recently.

That's strange, I tested on a 24.2 build I had lying around and found the
same problem. Though I can't even remember how/when that was built.

I'll check out 24.5 tomorrow and do a proper test.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Mon, 06 Jul 2015 17:17:02 GMT) Full text and rfc822 format available.

Message #28 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: handa <handa <at> gnu.org>
Cc: 20984 <at> debbugs.gnu.org, bruce.connor.am <at> gmail.com
Subject: Re: bug#20984: 25.0.50;
 Combining accents don't display properly in certain fonts
Date: Mon, 06 Jul 2015 20:16:27 +0300
> From: handa <handa <at> gnu.org>
> Cc: bruce.connor.am <at> gmail.com, 20984 <at> debbugs.gnu.org
> Date: Mon, 06 Jul 2015 23:59:14 +0900
> 
> > >   [0 1 0 626 8 1 6 8 -3 nil]
> > >   [0 1 0 734 0 1 5 11 -9 [0 0 0]]
> 
> I tried that font on my Lubuntu system with Emacs 24.5 and the latest
> trunk version.  I see no problem with 24.5, i.e. a-grave is correctly
> displayed, but see the same problem as yours with trunk version.
> 
> So, it seems that something was broken recently.

Could it be my latest changes related to fontsets?  Though then the
Windows build should have been affected as well.

The composition data above looks wrong, doesn't it?  Like if the 'a'
part of the grapheme cluster comes from some different codepoint, not
from 'a', am I right?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Thu, 09 Jul 2015 09:28:01 GMT) Full text and rfc822 format available.

Message #31 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: handa <handa <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20984 <at> debbugs.gnu.org, bruce.connor.am <at> gmail.com
Subject: Re: bug#20984: 25.0.50;
 Combining accents don't display properly in certain fonts
Date: Thu, 09 Jul 2015 18:27:08 +0900
In article <831tglw6j8.fsf <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org> writes:

> > From: handa <handa <at> gnu.org>
> > Cc: bruce.connor.am <at> gmail.com, 20984 <at> debbugs.gnu.org
> > Date: Mon, 06 Jul 2015 23:59:14 +0900
> > 
> > > >   [0 1 0 626 8 1 6 8 -3 nil]
> > > >   [0 1 0 734 0 1 5 11 -9 [0 0 0]]
> > 
> > I tried that font on my Lubuntu system with Emacs 24.5 and the latest
> > trunk version.  I see no problem with 24.5, i.e. a-grave is correctly
> > displayed, but see the same problem as yours with trunk version.
> > 
> > So, it seems that something was broken recently.

> Could it be my latest changes related to fontsets?  Though then the
> Windows build should have been affected as well.

I don't think so.  Your change is related to font selection, and in the
current case, the font is correctly selected.

> The composition data above looks wrong, doesn't it?  Like if the 'a'
> part of the grapheme cluster comes from some different codepoint, not
> from 'a', am I right?

The above data is completely broken.  The 3rd element of each vector is
a character code, and it should be 97 and 768 respectively.

In my case too, the latest trunk Emacs returns the same vector as above,
and, Emacs 24.5 returns this:

  [0 1 97 28 8 -1 8 7 0 nil]
  [0 1 768 733 8 1 6 10 -8 [-8 0 0]]

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Thu, 09 Jul 2015 17:12:02 GMT) Full text and rfc822 format available.

Message #34 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Kenichi Handa <handa <at> gnu.org>
Cc: 20984 <at> debbugs.gnu.org, bruce.connor.am <at> gmail.com
Subject: Re: bug#20984: 25.0.50;
 Combining accents don't display properly in certain fonts
Date: Thu, 09 Jul 2015 20:10:56 +0300
> From: handa <handa <at> gnu.org>
> Cc: bruce.connor.am <at> gmail.com, 20984 <at> debbugs.gnu.org
> Date: Thu, 09 Jul 2015 18:27:08 +0900
> 
> > > > >   [0 1 0 626 8 1 6 8 -3 nil]
> > > > >   [0 1 0 734 0 1 5 11 -9 [0 0 0]]
> > > 
> > The composition data above looks wrong, doesn't it?  Like if the 'a'
> > part of the grapheme cluster comes from some different codepoint, not
> > from 'a', am I right?
> 
> The above data is completely broken.  The 3rd element of each vector is
> a character code, and it should be 97 and 768 respectively.
> 
> In my case too, the latest trunk Emacs returns the same vector as above,
> and, Emacs 24.5 returns this:
> 
>   [0 1 97 28 8 -1 8 7 0 nil]
>   [0 1 768 733 8 1 6 10 -8 [-8 0 0]]

Can you point me to the code that is involved in creation of the
composition data, when the font back-end is xftfont?  Specifically,
those portions of creating the composition data that depend on the
font features, since the same composition displays correctly for the
OP (and I guess for you as well) with DejaVu Sans Mono.  I will then
try to see what changes were done there since 24.5.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Thu, 09 Jul 2015 21:56:01 GMT) Full text and rfc822 format available.

Message #37 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20984 <at> debbugs.gnu.org, Kenichi Handa <handa <at> gnu.org>
Subject: Re: bug#20984: 25.0.50; Combining accents don't display properly in
 certain fonts
Date: Thu, 9 Jul 2015 22:55:09 +0100
> OP (and I guess for you as well) with DejaVu Sans Mono.  I will then
> try to see what changes were done there since 24.5.

Just to add information. I built the emacs-24.5 tag today and I still
see the same issue on it. So don't be surprised if the answer isn't
there. =/




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Fri, 10 Jul 2015 06:26:02 GMT) Full text and rfc822 format available.

Message #40 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: bruce.connor.am <at> gmail.com
Cc: 20984 <at> debbugs.gnu.org, handa <at> gnu.org
Subject: Re: bug#20984: 25.0.50;
 Combining accents don't display properly in certain fonts
Date: Fri, 10 Jul 2015 09:25:31 +0300
> Date: Thu, 9 Jul 2015 22:55:09 +0100
> From: Artur Malabarba <bruce.connor.am <at> gmail.com>
> Cc: Kenichi Handa <handa <at> gnu.org>, 20984 <at> debbugs.gnu.org
> 
> > OP (and I guess for you as well) with DejaVu Sans Mono.  I will then
> > try to see what changes were done there since 24.5.
> 
> Just to add information. I built the emacs-24.5 tag today and I still
> see the same issue on it. So don't be surprised if the answer isn't
> there. =/

Yes, I understand.  But walking through the code might be a good
starting point anyway, since the composition data is so completely
broken.

Btw, I wonder why xftfont and libotf don't do the same as Uniscribe,
i.e. instruct Emacs to display the à 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 à is available both in DejaVu Sans Mono and in
Source Code Pro.  But I don't know enough about libotf.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Fri, 10 Jul 2015 07:31:01 GMT) Full text and rfc822 format available.

Message #43 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20984 <at> debbugs.gnu.org, Kenichi Handa <handa <at> gnu.org>
Subject: Re: bug#20984: 25.0.50; Combining accents don't display properly in
 certain fonts
Date: Fri, 10 Jul 2015 08:29:56 +0100
[Message part 1 (text/plain, inline)]
> It is strange that libotf doesn't take this shortcut, although I'm
> quite sure a glyph for à is available both in DejaVu Sans Mono and in
> Source Code Pro.

Indeed it is. If I type out the actual letter (grave a) it displays fine.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Fri, 10 Jul 2015 16:07:02 GMT) Full text and rfc822 format available.

Message #46 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: handa <handa <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20984 <at> debbugs.gnu.org, bruce.connor.am <at> gmail.com
Subject: Re: bug#20984: 25.0.50;
 Combining accents don't display properly in certain fonts
Date: Sat, 11 Jul 2015 01:06:35 +0900
[Message part 1 (text/plain, inline)]
In article <83oajkbkbo.fsf <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org> writes:

> Btw, I wonder why xftfont and libotf don't do the same as Uniscribe,
> i.e. instruct Emacs to display the à 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 à 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 <at> gnu.org

[COMBINING.flt (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Wed, 15 Jul 2015 19:06:02 GMT) Full text and rfc822 format available.

Message #49 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: handa <handa <at> gnu.org>
Cc: 20984 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#20984: 25.0.50; Combining accents don't display properly in
 certain fonts
Date: Wed, 15 Jul 2015 20:05:20 +0100
Indeed, this works.

2015-07-10 17:06 GMT+01:00 handa <handa <at> gnu.org>:
> In article <83oajkbkbo.fsf <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org> writes:
>
>> Btw, I wonder why xftfont and libotf don't do the same as Uniscribe,
>> i.e. instruct Emacs to display the à 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 à 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 <at> gnu.org
>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Wed, 15 Jul 2015 19:29:02 GMT) Full text and rfc822 format available.

Message #52 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: bruce.connor.am <at> gmail.com
Cc: 20984 <at> debbugs.gnu.org, handa <at> gnu.org
Subject: Re: bug#20984: 25.0.50;
 Combining accents don't display properly in certain fonts
Date: Wed, 15 Jul 2015 22:28:49 +0300
> Date: Wed, 15 Jul 2015 20:05:20 +0100
> From: Artur Malabarba <bruce.connor.am <at> gmail.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 20984 <at> debbugs.gnu.org
> 
> Indeed, this works.

Thanks for testing.

So can we close this bug, or are there any leftovers?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Wed, 15 Jul 2015 22:30:04 GMT) Full text and rfc822 format available.

Message #55 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: Artur Malabarba <bruce.connor.am <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 20984 <at> debbugs.gnu.org, Kenichi Handa <handa <at> gnu.org>
Subject: Re: bug#20984: 25.0.50; Combining accents don't display properly in
 certain fonts
Date: Wed, 15 Jul 2015 23:29:20 +0100
[Message part 1 (text/plain, inline)]
> So can we close this bug, or are there any leftovers?

Yes. It's enough for me.
[Message part 2 (text/html, inline)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 16 Jul 2015 02:41:01 GMT) Full text and rfc822 format available.

Notification sent to bruce.connor.am <at> gmail.com:
bug acknowledged by developer. (Thu, 16 Jul 2015 02:41:02 GMT) Full text and rfc822 format available.

Message #60 received at 20984-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: bruce.connor.am <at> gmail.com
Cc: 20984-done <at> debbugs.gnu.org, handa <at> gnu.org
Subject: Re: bug#20984: 25.0.50;
 Combining accents don't display properly in certain fonts
Date: Thu, 16 Jul 2015 05:40:38 +0300
> Date: Wed, 15 Jul 2015 23:29:20 +0100
> From: Artur Malabarba <bruce.connor.am <at> gmail.com>
> Cc: 20984 <at> debbugs.gnu.org, Kenichi Handa <handa <at> gnu.org>
> 
> > So can we close this bug, or are there any leftovers?
> 
> Yes. It's enough for me. 

Thanks, closing.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20984; Package emacs. (Thu, 16 Jul 2015 12:52:02 GMT) Full text and rfc822 format available.

Message #63 received at 20984 <at> debbugs.gnu.org (full text, mbox):

From: handa <handa <at> gnu.org>
To: bruce.connor.am <at> gmail.com
Cc: 20984 <at> debbugs.gnu.org, eliz <at> gnu.org
Subject: Re: bug#20984: 25.0.50; Combining accents don't display properly in
 certain fonts
Date: Thu, 16 Jul 2015 21:51:22 +0900
In article <CAAdUY-JQoRXbdHT3rERAVhfCb76cVViBD3i5y85dYR+sL5mqbA <at> mail.gmail.com>, Artur Malabarba <bruce.connor.am <at> gmail.com> writes:

> Indeed, this works.

Thank you for testing.  The next release of m17n-db will come with that
new version.

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


> 2015-07-10 17:06 GMT+01:00 handa <handa <at> gnu.org>:
> > In article <83oajkbkbo.fsf <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org> writes:
> >
>>> Btw, I wonder why xftfont and libotf don't do the same as Uniscribe,
>>> i.e. instruct Emacs to display the à 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 à 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 <at> gnu.org
> >





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 14 Aug 2015 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 3 days ago.

Previous Next


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