From: Artur Malabarba <bruce.connor.am@gmail.com>
To: handa <handa@gnu.org>
Cc: 20984@debbugs.gnu.org
Subject: bug#20984: 25.0.50; Combining accents don't display properly in certain fonts
Date: Wed, 15 Jul 2015 20:05:20 +0100 [thread overview]
Message-ID: <CAAdUY-JQoRXbdHT3rERAVhfCb76cVViBD3i5y85dYR+sL5mqbA@mail.gmail.com> (raw)
In-Reply-To: <87h9pc575g.fsf@gnu.org>
Indeed, this works.
2015-07-10 17:06 GMT+01:00 handa <handa@gnu.org>:
> In article <83oajkbkbo.fsf@gnu.org>, Eli Zaretskii <eliz@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@gnu.org
>
next prev parent reply other threads:[~2015-07-15 19:05 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-05 16:24 bug#20984: 25.0.50; Combining accents don't display properly in certain fonts Artur Malabarba
2015-07-05 16:33 ` Eli Zaretskii
2015-07-05 16:42 ` Artur Malabarba
2015-07-05 17:01 ` Eli Zaretskii
2015-07-05 18:02 ` Artur Malabarba
2015-07-06 14:59 ` handa
[not found] ` <CAAdUY-K+xkkeVapMxf44ZwbCXtQYDJGCPZu2PnRhPf-X9R=Npw@mail.gmail.com>
2015-07-06 16:58 ` Artur Malabarba
2015-07-06 17:16 ` Eli Zaretskii
2015-07-09 9:27 ` handa
2015-07-09 17:10 ` Eli Zaretskii
2015-07-09 21:55 ` Artur Malabarba
2015-07-10 6:25 ` Eli Zaretskii
2015-07-10 7:29 ` Artur Malabarba
2015-07-10 16:06 ` handa
2015-07-15 19:05 ` Artur Malabarba [this message]
2015-07-15 19:28 ` Eli Zaretskii
2015-07-15 22:29 ` Artur Malabarba
2015-07-16 2:40 ` Eli Zaretskii
2015-07-16 12:51 ` handa
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=CAAdUY-JQoRXbdHT3rERAVhfCb76cVViBD3i5y85dYR+sL5mqbA@mail.gmail.com \
--to=bruce.connor.am@gmail.com \
--cc=20984@debbugs.gnu.org \
--cc=handa@gnu.org \
/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).