From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39554: 27.0.50; cairo not composing sequences Date: Wed, 12 Feb 2020 21:59:37 +0200 Message-ID: <83lfp7r2za.fsf@gnu.org> References: <83k14tby90.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="44795"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39554@debbugs.gnu.org To: James Cloos Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 12 21:00:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j1yBA-000BXg-8v for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Feb 2020 21:00:12 +0100 Original-Received: from localhost ([::1]:42664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1yB9-0005yR-0X for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Feb 2020 15:00:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37251) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1yB1-0005yG-Ly for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2020 15:00:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1yB0-0000V5-JL for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2020 15:00:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53114) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1yB0-0000UR-F6 for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2020 15:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j1yB0-0001Hw-D2 for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2020 15:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Feb 2020 20:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39554 X-GNU-PR-Package: emacs Original-Received: via spool by 39554-submit@debbugs.gnu.org id=B39554.15815375904907 (code B ref 39554); Wed, 12 Feb 2020 20:00:02 +0000 Original-Received: (at 39554) by debbugs.gnu.org; 12 Feb 2020 19:59:50 +0000 Original-Received: from localhost ([127.0.0.1]:59087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j1yAo-0001H4-4R for submit@debbugs.gnu.org; Wed, 12 Feb 2020 14:59:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j1yAl-0001Gs-OS for 39554@debbugs.gnu.org; Wed, 12 Feb 2020 14:59:48 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j1yAg-0000FE-9Q; Wed, 12 Feb 2020 14:59:42 -0500 Original-Received: from [176.228.60.248] (port=2577 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j1yAc-0004wi-CB; Wed, 12 Feb 2020 14:59:39 -0500 In-reply-to: (message from James Cloos on Wed, 12 Feb 2020 13:51:53 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175980 Archived-At: [Please keep the bug number on the CC list.] > From: James Cloos > Date: Wed, 12 Feb 2020 13:51:53 -0500 > > >>>>> "EZ" == Eli Zaretskii writes: > > >> Sequences like 0̸ fail to display composed in master --with-cairo but do > >> when usin xft. > > EZ> Please show a complete reproducing recipe for this problem. > > The 0̸ in thequoted line is one. Sorry, I failed to realize that ̸ was a combining accent, not an ASCII slash. In an Emacs built with HarfBuzz on MS-Windows, if I use a font that has support for ̸, I do see these two characters composed into a single glyph whose width is as that of a single character. But if I use DejaVu Sans Mono, I indeed see a double-width grapheme cluster. So I think this might be related to font selection somehow. Can you try different monospaced fonts and see if the results in the Cairo build are better with other fonts? > EZ> This means that the font backend couldn't produce a single glyph for > EZ> the character combination, for some reason, so it displayed the > EZ> original glyphs as a single grapheme cluster. IOW, character > EZ> composition did work, it just didn't find a precomposed glyph in the > EZ> font, or maybe the precomposed glyph was rejected for some reason. > > It is not supposed to be looking for precomposed glyphs. It is supposed > to be rendering each combining glyph on top of the base glyph. Just > like xft does. The way character composition works in Emacs, we first ask the font for precomposed glyphs, and display them if the font has them. If that fails, then we combine the separate glyphs ourselves. See compose-gstring-for-graphic.