From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#43058: 27.1; Support for other colour font formats Date: Sun, 25 Sep 2022 15:40:59 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <83v9h537tj.fsf@gnu.org> <831qs3ubnm.fsf@gnu.org> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30492"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: 43058@debbugs.gnu.org, lists.gnu.org@mavit.org.uk To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 25 08:42:14 2022 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 1ocLLC-0007lG-Lv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Sep 2022 08:42:14 +0200 Original-Received: from localhost ([::1]:35930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocLLB-0007FK-HX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Sep 2022 02:42:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocLL1-0007Ey-3C for bug-gnu-emacs@gnu.org; Sun, 25 Sep 2022 02:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocLL0-0008NM-Fk for bug-gnu-emacs@gnu.org; Sun, 25 Sep 2022 02:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ocLL0-0000kI-5r for bug-gnu-emacs@gnu.org; Sun, 25 Sep 2022 02:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Sep 2022 06:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43058 X-GNU-PR-Package: emacs Original-Received: via spool by 43058-submit@debbugs.gnu.org id=B43058.16640880672796 (code B ref 43058); Sun, 25 Sep 2022 06:42:02 +0000 Original-Received: (at 43058) by debbugs.gnu.org; 25 Sep 2022 06:41:07 +0000 Original-Received: from localhost ([127.0.0.1]:45728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocLK6-0000j1-EF for submit@debbugs.gnu.org; Sun, 25 Sep 2022 02:41:07 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:57522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocLK1-0000iO-RZ for 43058@debbugs.gnu.org; Sun, 25 Sep 2022 02:41:05 -0400 Original-Received: from mathent.math.s.chiba-u.ac.jp (mathent [192.168.32.5]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id D97D5F08E4; Sun, 25 Sep 2022 15:40:59 +0900 (JST) (envelope-from mituharu@math.s.chiba-u.ac.jp) In-Reply-To: <831qs3ubnm.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:243570 Archived-At: On Thu, 22 Sep 2022 16:10:53 +0900, Eli Zaretskii wrote: > > > Date: Thu, 22 Sep 2022 11:45:02 +0900 > > From: YAMAMOTO Mitsuharu > > Cc: Eli Zaretskii , > > 43058@debbugs.gnu.org > > > > This font is rejected by the ftcr(hb) font backend because its average > > width is computed as 0. The average width is approximated by that of > > all ASCII chars, and the width of glyph ID 0 is used for missing ones. > > OpenMoji Color does not have several ASCII chars, and the width of > > glyph ID 0 is 0. That's why the average width becomes 0 there. > > > > The patch below avoids this by taking the average of non-zero width of > > the ASCII chars. But glyphs are not displayed because SVG-in-OpenType > > support in cairo is still in progress: > > https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/319 > > Does this mean the patch, if installed, will not reject the font, but > will also not display its glyphs? Yes. > If so, doesn't it mean we should install this patch conditioned on > some (future) Cairo version, where these glyphs will be displayed? > As long as Cairo doesn't support that, I think rejecting these fonts > is the best we can do, right? In principle, some other fonts whose formats can be handled by the current Emacs and cairo might have been inadvertently rejected (althogh I don't have any concrete examples). Also, the latest version of OpenMoji Color no longer has the average width problem. So, it is not rejected even without the patch, and its glyphs are not displayed on the current Emacs and cairo anyway. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp