From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 08:24:33 2020 Received: (at submit) by debbugs.gnu.org; 26 Aug 2020 12:24:33 +0000 Received: from localhost ([127.0.0.1]:37631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAuTg-0003xa-MS for submit@debbugs.gnu.org; Wed, 26 Aug 2020 08:24:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:42010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAuTc-0003xR-SD for submit@debbugs.gnu.org; Wed, 26 Aug 2020 08:24:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAuTc-0000qE-MM for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2020 08:24:28 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:55489) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAuTZ-0004yL-Rg for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2020 08:24:28 -0400 Received: by mail-wm1-f52.google.com with SMTP id a65so1540405wme.5 for ; Wed, 26 Aug 2020 05:24:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=YGqLKC4hbfowjO6TZbkq0NJjmU8ShjXZnYY4dc5j57w=; b=KWIgWKVRz1gmXVaWb5JTZbJmm9XKW8PFlKUaNHZlJQGtZa/O+F5lQsX9Y0Lv7dh/vh r+i1YIFJYd5TmfqPViHa5lMhfGOeQIDq+dDzoNCMo3cZlhwJhiO1N2TsJTWLouw4ocJv oVwdTgkZxiuCuUdAVW4NfDbNXM5ug8KlZVkjf5LPreFGbArSDFhxLdKlGXQ1LppiFa2h rItYheeaJUgk/Oir0DYHDMtCrzP2mKmDwzqEM4Aj996rzp8p5RpklRUsGjjSI+7TT7VW 8Lm0qBjRO+dZQo/gGpZiOm7oIsIydVLJyt+OKvuLNfipPsvSU/3K6e7jdWfvJks7fXRO nF0g== X-Gm-Message-State: AOAM531omSVowdKX6/VIEQYHyHbmWCTcIPZvrXGcxGsp/xtL/98n7Gh+ fGqospOMXsj5xko+ivu4Bt33oowV+X5lnoBO X-Google-Smtp-Source: ABdhPJxPheXfiA1wAioAOGHOL+hEZhg7s9zd5sPzJDezJk2PyXs/VgbeTx39aJl/m6UeQgbU1e0S4w== X-Received: by 2002:a1c:2b43:: with SMTP id r64mr6711464wmr.105.1598444662870; Wed, 26 Aug 2020 05:24:22 -0700 (PDT) Received: from froglet.home.mavit.org.uk (cpc119764-dudl14-2-0-cust127.16-1.cable.virginm.net. [82.27.240.128]) by smtp.gmail.com with ESMTPSA id d21sm5441620wmd.41.2020.08.26.05.24.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 05:24:22 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.15.2/8.15.2) with ESMTPS id 07QCOLLL013902 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 26 Aug 2020 13:24:21 +0100 Received: (from mavit@localhost) by froglet.home.mavit.org.uk (8.15.2/8.15.2/Submit) id 07QCOLov013901; Wed, 26 Aug 2020 13:24:21 +0100 From: Peter Oliver To: bug-gnu-emacs@gnu.org Subject: 27.1; Support for other colour font formats Date: Wed, 26 Aug 2020 13:24:05 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=209.85.128.52; envelope-from=mavit@mavit.org.uk; helo=mail-wm1-f52.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/26 08:24:23 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) As I understand it, there are four competing standards for colour in TFF fo= nts: CBDT (Google), COLR (Microsoft), SBIX (Apple) and SVG (W3C). I have tried CBDT, COLR and SVG in Emacs 27.1 on Fedora 32, and only CBDT w= orks for me. Gnome on Fedora 32 supports both CBDT and COLR, suggesting that the underly= ing libraries have the necessary support for COLR. CBDT is a bitmap format, whereas COLR is a vector format; it would be good = to be able to support both. Further, the existence of https://github.com/g= ooglefonts/colr-gradients-spec implies that Google could be considering swi= tching from CBDT to COLR, suggesting the possibility that the CBDT format c= ould become obsolete. The NEWS file for Emacs 27.1 says: =E2=80=9CMulticolor fonts such as "Noto Color Emoji" can be displayed on Emacs configured with Cairo drawing and linked with cairo >=3D 1.16.0.=E2= =80=9D I would submit a patch to change this to mention that only CBDT is currentl= y supported, but I=E2=80=99m not sure if that=E2=80=99s true on, e.g., Wind= ows or MacOS. In GNU Emacs 27.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.21, = cairo version 1.16.0) of 2020-08-20 built on buildvm-x86-24.iad2.fedoraproject.org Windowing system distributor 'Fedora Project', version 11.0.12008000 System Description: Fedora 32 (Workstation Edition) Configured using: 'configure --build=3Dx86_64-redhat-linux-gnu --host=3Dx86_64-redhat-linux-gnu --program-prefix=3D --disable-dependency-tracking --prefix=3D/usr --exec-prefix=3D/usr --bindir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64 --libexecdir=3D/usr/libexec --localstatedir=3D/var --sharedstatedir=3D/var/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=3Dgtk3 --with-gpm=3Dno --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json build_alias=3Dx86_64-redhat-linux-gnu host_alias=3Dx86_64-redhat-linux-gnu 'CFLAGS=3D-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORTIFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=3D-Wl,-z,relro PKG_CONFIG_PATH=3D:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD JSON PDUMPER GMP Important settings: value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix --=20 Peter Oliver From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 08:34:05 2020 Received: (at 43058) by debbugs.gnu.org; 26 Aug 2020 12:34:05 +0000 Received: from localhost ([127.0.0.1]:37653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAucv-0004Dd-IU for submit@debbugs.gnu.org; Wed, 26 Aug 2020 08:34:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAuct-0004D2-RZ for 43058@debbugs.gnu.org; Wed, 26 Aug 2020 08:34:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59171) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAuco-0006Dd-Gx; Wed, 26 Aug 2020 08:33:58 -0400 Received: from [176.228.60.248] (port=4452 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kAucn-0005JV-RK; Wed, 26 Aug 2020 08:33:58 -0400 Date: Wed, 26 Aug 2020 15:33:44 +0300 Message-Id: <83v9h537tj.fsf@gnu.org> From: Eli Zaretskii To: Peter Oliver In-Reply-To: (message from Peter Oliver on Wed, 26 Aug 2020 13:24:05 +0100) Subject: Re: bug#43058: 27.1; Support for other colour font formats References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43058 Cc: 43058@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Peter Oliver > Date: Wed, 26 Aug 2020 13:24:05 +0100 > > The NEWS file for Emacs 27.1 says: > “Multicolor fonts such as "Noto Color Emoji" can be displayed on > Emacs configured with Cairo drawing and linked with cairo >= 1.16.0.” > I would submit a patch to change this to mention that only CBDT is currently supported, but I’m not sure if that’s true on, e.g., Windows or MacOS. AFAIK, we support whatever Cairo supports, so stating the limitation in our NEWS would be unwise, I think, because Cairo is also being developed, and so such statements could become inaccurate outside of our control. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 11:12:17 2020 Received: (at 43058) by debbugs.gnu.org; 26 Aug 2020 15:12:17 +0000 Received: from localhost ([127.0.0.1]:40464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAx61-0007LR-4m for submit@debbugs.gnu.org; Wed, 26 Aug 2020 11:12:17 -0400 Received: from mail-wm1-f44.google.com ([209.85.128.44]:37130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAx5y-0007LE-JH for 43058@debbugs.gnu.org; Wed, 26 Aug 2020 11:12:16 -0400 Received: by mail-wm1-f44.google.com with SMTP id x9so2144834wmi.2 for <43058@debbugs.gnu.org>; Wed, 26 Aug 2020 08:12:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version:content-id; bh=UGJsOQu9gYDJiJOueuBUg6knDuSt3TjkqkOkFeNJOIM=; b=NYgh2P24bvmQavjhJhyk3/SuhusSfGaOsNr7fCX5fWGrMqkF5N8EzxMpskkxfTsx0l 9GT7zEPFF6e3t4eRFAkX7TrYX0lf4Jr6WngFx6a8WMNcXXskChsfyR/RjnqO/M6LOqcP 9SO9KymNdO1x7sNUTopl/CzFUIkfd7wT8bQghHVPHwgONZojPSunMSCDZ11fpAdWQSBU iesnsprtuv/Wp0x0SfKS0C1JMqXkTrW1Tqa3PjSPs3+rfCllaOaHVYyO3PZ5PlWs6INE SmpklZiFmtgRv0PxFApnTHqhKPbTxpgTu1XD0P9i1CEF//FffCMXEX0jzWx0YzQ1dq7y q6Bg== X-Gm-Message-State: AOAM530B5Vk0g4uPV9wyTFZsz3CHdEMrV4UWly6HOdSYLGMKrb8JxGC3 NHvWpiwdQXZiDmXaCnkZ0Nsm+g== X-Google-Smtp-Source: ABdhPJxfh19Ansza6bo0Cnw65BEfAGa/CbQLl4B5MOpCSnmitKdL70nBgDSYbrhHhjRCYL9ilZigFg== X-Received: by 2002:a7b:c015:: with SMTP id c21mr7501066wmb.87.1598454728927; Wed, 26 Aug 2020 08:12:08 -0700 (PDT) Received: from froglet.home.mavit.org.uk (cpc119764-dudl14-2-0-cust127.16-1.cable.virginm.net. [82.27.240.128]) by smtp.gmail.com with ESMTPSA id v12sm7311253wri.47.2020.08.26.08.12.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 08:12:08 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.15.2/8.15.2) with ESMTPS id 07QFC7hM031176 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 26 Aug 2020 16:12:07 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.15.2/8.15.2/Submit) with ESMTP id 07QFC7mp031171; Wed, 26 Aug 2020 16:12:07 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Wed, 26 Aug 2020 16:12:06 +0100 (BST) From: Peter Oliver To: Eli Zaretskii Subject: Re: bug#43058: 27.1; Support for other colour font formats In-Reply-To: <83v9h537tj.fsf@gnu.org> Message-ID: References: <83v9h537tj.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="-1463811583-587403177-1598451811=:3319" Content-ID: X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 43058 Cc: 43058@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1463811583-587403177-1598451811=:3319 Content-Type: text/plain; CHARSET=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT Content-ID: On Wed, 26 Aug 2020, Eli Zaretskii wrote: OB >> From: Peter Oliver >> Date: Wed, 26 Aug 2020 13:24:05 +0100 >> >> The NEWS file for Emacs 27.1 says: >> “Multicolor fonts such as "Noto Color Emoji" can be displayed on >> Emacs configured with Cairo drawing and linked with cairo >= 1.16.0.” >> I would submit a patch to change this to mention that only CBDT is currently supported, but I’m not sure if that’s true on, e.g., Windows or MacOS. > > AFAIK, we support whatever Cairo supports As I say, COLR works in other GTK apps, so I don’t think it’s as simple as “Cairo doesn’t support that”. Observation: First I grabbed a COLR TTF (e.g., https://github.com/hfg-gmuend/openmoji/raw/47c9efe5449ba2ef77b77cdcae28b00811dea843/font/untouchedsvgz/OpenMoji-Color.ttf) and saved it to ~/.local/share/fonts/. Then: ELISP> (x-list-fonts "OpenMoji Color") ("-NONE-OpenMoji Color-normal-normal-normal-*-*-*-*-*-m-0-iso10646-1") ELISP> (font-info (car (x-list-fonts "OpenMoji Color"))) nil This makes me suspect that the problem isn’t with outputting with the font, but in finding the font in the first place. I’m not sure how to go about debugging this. -- Peter Oliver ---1463811583-587403177-1598451811=:3319-- From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 21 22:45:08 2022 Received: (at 43058) by debbugs.gnu.org; 22 Sep 2022 02:45:08 +0000 Received: from localhost ([127.0.0.1]:35671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obCD6-0007Ro-9F for submit@debbugs.gnu.org; Wed, 21 Sep 2022 22:45:08 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:60078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obCD4-0007Ra-LW for 43058@debbugs.gnu.org; Wed, 21 Sep 2022 22:45:07 -0400 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 AD03FF08E8; Thu, 22 Sep 2022 11:45:02 +0900 (JST) (envelope-from mituharu@math.s.chiba-u.ac.jp) Date: Thu, 22 Sep 2022 11:45:02 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Peter Oliver Subject: Re: bug#43058: 27.1; Support for other colour font formats In-Reply-To: References: <83v9h537tj.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43058 Cc: 43058@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, 27 Aug 2020 00:12:06 +0900, Peter Oliver wrote: >=20 > Observation: >=20 > First I grabbed a COLR TTF (e.g., https://github.com/hfg-gmuend/openmoji/= raw/47c9efe5449ba2ef77b77cdcae28b00811dea843/font/untouchedsvgz/OpenMoji-Co= lor.ttf) and saved it to ~/.local/share/fonts/. Then: >=20 > ELISP> (x-list-fonts "OpenMoji Color") > ("-NONE-OpenMoji Color-normal-normal-normal-*-*-*-*-*-m-0-iso10646-1") > ELISP> (font-info (car (x-list-fonts "OpenMoji Color"))) > nil >=20 > This makes me suspect that the problem isn=A2t with outputting with the f= ont, but in finding the font in the first place. I=A2m not sure how to go = about debugging this. The above font does not have the 'COLR' table, but the 'SVG ' one. So I think it is an SVG-in-OpenType font. 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 YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp diff --git a/src/ftcrfont.c b/src/ftcrfont.c index e089f9dea8..9e83ad00d4 100644 --- a/src/ftcrfont.c +++ b/src/ftcrfont.c @@ -233,6 +233,7 @@ ftcrfont_open (struct frame *f, Lisp_Object entity, int= pixel_size) cairo_glyph_t stack_glyph; font->min_width =3D font->max_width =3D 0; font->average_width =3D font->space_width =3D 0; + int n =3D 0; for (char c =3D 32; c < 127; c++) { cairo_glyph_t *glyphs =3D &stack_glyph; @@ -252,17 +253,20 @@ ftcrfont_open (struct frame *f, Lisp_Object entity, i= nt pixel_size) stack_glyph.index =3D 0; } int this_width =3D ftcrfont_glyph_extents (font, stack_glyph.index, = NULL); - if (this_width > 0 - && (! font->min_width - || font->min_width > this_width)) - font->min_width =3D this_width; - if (this_width > font->max_width) - font->max_width =3D this_width; - if (c =3D=3D 32) - font->space_width =3D this_width; - font->average_width +=3D this_width; + if (this_width > 0) + { + if (! font->min_width || font->min_width > this_width) + font->min_width =3D this_width; + if (this_width > font->max_width) + font->max_width =3D this_width; + if (c =3D=3D 32) + font->space_width =3D this_width; + font->average_width +=3D this_width; + n++; + } } - font->average_width /=3D 95; + if (n) + font->average_width /=3D n; =20 cairo_scaled_font_extents (ftcrfont_info->cr_scaled_font, &extents); font->ascent =3D lround (extents.ascent); From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 22 03:10:51 2022 Received: (at 43058) by debbugs.gnu.org; 22 Sep 2022 07:10:51 +0000 Received: from localhost ([127.0.0.1]:36068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obGME-0000B2-Sy for submit@debbugs.gnu.org; Thu, 22 Sep 2022 03:10:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obGMD-0000AN-Gk for 43058@debbugs.gnu.org; Thu, 22 Sep 2022 03:10:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42894) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obGM6-0004IG-W3; Thu, 22 Sep 2022 03:10:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YdJTRxLDAtvXaj7FlEVetYzFqclyZ2wrdEOnctVdB0I=; b=PVkNEjpRAkfP j0teomFM1y44NmMJuIY4HMtYpC1ZDD9zh4r95cFoTDIPPCv7YQjwg9ft7nJCMmOR/z33l9MMn8olK OyiBiA1tlECQrLFdr2kcgylvfKg9wkGnYVI1kQVlbbz+lpnxswCYlmoU148QyUbWwg2daEP4xRUR9 Bb5xp3nQFITkggzhPf2ogwMmKSSHYWRDOu5Z/9TZTou1wCNGOw9FUHbe9U8ZrvxIhbB2kNaBYUBqH B/H3ydTRXHAezqVL7gpeBt+xoJhtsVrxEECci8BtdwEMrLTfCNd2Tw30dEwBoiRSBB0Ni+lRjhrP6 OMc6ocdiK06ar4PV9mZuMg==; Received: from [87.69.77.57] (port=4137 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obGM6-0002Ug-5l; Thu, 22 Sep 2022 03:10:42 -0400 Date: Thu, 22 Sep 2022 10:10:53 +0300 Message-Id: <831qs3ubnm.fsf@gnu.org> From: Eli Zaretskii To: YAMAMOTO Mitsuharu In-Reply-To: (message from YAMAMOTO Mitsuharu on Thu, 22 Sep 2022 11:45:02 +0900) Subject: Re: bug#43058: 27.1; Support for other colour font formats References: <83v9h537tj.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43058 Cc: 43058@debbugs.gnu.org, lists.gnu.org@mavit.org.uk X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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? 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? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 25 02:41:07 2022 Received: (at 43058) by debbugs.gnu.org; 25 Sep 2022 06:41:07 +0000 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 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 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) Date: Sun, 25 Sep 2022 15:40:59 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Eli Zaretskii Subject: Re: bug#43058: 27.1; Support for other colour font formats In-Reply-To: <831qs3ubnm.fsf@gnu.org> References: <83v9h537tj.fsf@gnu.org> <831qs3ubnm.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43058 Cc: 43058@debbugs.gnu.org, lists.gnu.org@mavit.org.uk X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 25 04:03:47 2022 Received: (at 43058) by debbugs.gnu.org; 25 Sep 2022 08:03:47 +0000 Received: from localhost ([127.0.0.1]:45811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocMc5-0002se-Lp for submit@debbugs.gnu.org; Sun, 25 Sep 2022 04:03:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocMc0-0002sO-Oq for 43058@debbugs.gnu.org; Sun, 25 Sep 2022 04:03:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37342) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocMbu-0002Q6-LI; Sun, 25 Sep 2022 04:03:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=/trMr8ZfEZf2fuXnxf8PDgcNwKcTfnFTckgNkoUFc7s=; b=H/Z6qDNHyrVJ g0aFrdxeK67MjvG6SZH5Au2vVddYxyFORRLIgwJxJTAsXraLGmQqniximybR1+BffPhynGJa8mTCM 0UA8zwh7iXuIu+df9zL+DJDxAYOJV3IlMyntWjFXeCmAqIHu8utAbIIxTDlTnqHkWSCTgUORqlHOW UsK3iI0W38ptftqb70jhZ59dk1/M6vWUm80qA0G+c8jrltLQEbTOrJwiS6d9lJBTDBGRQadZWHS+5 2xeYYNsXdCmBOdY5hSyPQtQV8o7yQNSjzK20W5nFK4tvCMTaDtzKFZZ0LdpMV1JA8v0B1Zam3yoov 5xfL1mV4+vBCc1jdrJM6tQ==; Received: from [87.69.77.57] (port=2391 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocMbu-0005w3-3G; Sun, 25 Sep 2022 04:03:34 -0400 Date: Sun, 25 Sep 2022 11:03:22 +0300 Message-Id: <83k05rnanp.fsf@gnu.org> From: Eli Zaretskii To: YAMAMOTO Mitsuharu In-Reply-To: (message from YAMAMOTO Mitsuharu on Sun, 25 Sep 2022 15:40:59 +0900) Subject: Re: bug#43058: 27.1; Support for other colour font formats References: <83v9h537tj.fsf@gnu.org> <831qs3ubnm.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43058 Cc: 43058@debbugs.gnu.org, lists.gnu.org@mavit.org.uk X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 25 Sep 2022 15:40:59 +0900 > From: YAMAMOTO Mitsuharu > Cc: lists.gnu.org@mavit.org.uk, 43058@debbugs.gnu.org > > > 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. OK, thanks. I think on balance this means we should install this, so please push to the master branch. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 25 18:47:21 2022 Received: (at 43058) by debbugs.gnu.org; 25 Sep 2022 22:47:22 +0000 Received: from localhost ([127.0.0.1]:48690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocaPB-0007Z9-DA for submit@debbugs.gnu.org; Sun, 25 Sep 2022 18:47:21 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:45952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ocaP5-0007Ys-H5 for 43058@debbugs.gnu.org; Sun, 25 Sep 2022 18:47:19 -0400 Received: by mail-wr1-f48.google.com with SMTP id n10so7615976wrw.12 for <43058@debbugs.gnu.org>; Sun, 25 Sep 2022 15:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavit.org.uk; s=google; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date; bh=VcYEyxIVcX8DSiO5EDCqPC0Sge/bHaDqeWZQj5BPnMo=; b=CNjtzqPmsGpIyc3xVEB5LRC5BP6uY0MZNe5skNIbpTspyjqQXeIuruN9QC7utISHKS U8f0uoFwbzrV4uYdJ24oqo5dmbwJ3DzMHPOUfJYC9pEoCPGMR+2KSpcku66Uo2gx8p/z 2p9RJeRlDe/G8GjdOXxl7/unKvvmpNVSSg5LI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date; bh=VcYEyxIVcX8DSiO5EDCqPC0Sge/bHaDqeWZQj5BPnMo=; b=OjYIqiAN6l94etJ0+Qn5cXRfWDN46ih1hHgl+lYTySVfjSbgsNf0TZ5N1/Z/bZS5KC bMt8Q1bzXt6kmD2/K/wdjsElPPQ3XO3K/gT3baBgVfsHXVCaj6UhloPzuqd1SQ87RVpY aUR3JfAbt2lNQOVYPhRuQrzGkVPtUgGsuelNbLOe4uop2rqPkfAAyzTAU3OqeBBXL7Rr ZJn8NBlfRM+Ge8ZS909ZvMahxWofphe/lSAhwnqfhSC1ULx3hS8PW3xNp8x7rgbcc0H3 BV7KtQbXAc8D3exUcVm0flwSSsPAGsPUJkBR3LVs/ZM5xufZ9CjsyHstkeVypJMm1gRd Nr8A== X-Gm-Message-State: ACrzQf2i+jmbiayTYg77vKwwf1euB/njU3yPO6EMOF2VJ7sPmovlHX2w bsJkNf4VjDcfPoM4QhSL1Jjyjg== X-Google-Smtp-Source: AMsMyM4I1KXLVaFOo0/bJ1hilD99tw9gEcOFvXoG9QSo48HZMMrpmHQf0Saj6mXhus3epYLEZnJSIw== X-Received: by 2002:a5d:6ace:0:b0:22a:f444:2ad3 with SMTP id u14-20020a5d6ace000000b0022af4442ad3mr11416259wrw.21.1664146029382; Sun, 25 Sep 2022 15:47:09 -0700 (PDT) Received: from froglet.home.mavit.org.uk (dudl-14-b2-v4wan-165814-cust1925.vm31.cable.virginm.net. [82.34.135.134]) by smtp.gmail.com with ESMTPSA id i24-20020a1c5418000000b003a601a1c2f7sm9457680wmb.19.2022.09.25.15.47.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Sep 2022 15:47:07 -0700 (PDT) Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1]) by froglet.home.mavit.org.uk (8.17.1/8.17.1) with ESMTPS id 28PMl6sv063805 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 25 Sep 2022 23:47:06 +0100 Received: from localhost (mavit@localhost) by froglet.home.mavit.org.uk (8.17.1/8.17.1/Submit) with ESMTP id 28PMl2tJ063802; Sun, 25 Sep 2022 23:47:06 +0100 X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing -bs Date: Sun, 25 Sep 2022 23:47:02 +0100 (BST) From: Peter Oliver To: YAMAMOTO Mitsuharu Subject: Re: bug#43058: 27.1; Support for other colour font formats In-Reply-To: Message-ID: <581fb88-c1a3-65ee-dec2-b386ac3b59@froglet.home.mavit.org.uk> References: <83v9h537tj.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 43058 Cc: 43058@debbugs.gnu.org, Peter Oliver , Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, 22 Sep 2022, YAMAMOTO Mitsuharu wrote: > The above font does not have the 'COLR' table, but the 'SVG ' one. So > I think it is an SVG-in-OpenType font. Apologies, I appear to have pasted the wrong URL previously. The file that I intended to link to was https://github.com/mavit/openmoji/raw/nanoemoji/font/glyf_colr_0/OpenMoji-Color.COLRv0.ttf > 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. But it does allow the above COLR v0 font to be displayed here on Fedora 35. Thank you. -- Peter Oliver From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 25 21:05:25 2022 Received: (at 43058-done) by debbugs.gnu.org; 26 Sep 2022 01:05:26 +0000 Received: from localhost ([127.0.0.1]:48760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1occYn-0002VO-LA for submit@debbugs.gnu.org; Sun, 25 Sep 2022 21:05:25 -0400 Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:57088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1occYk-0002VD-7o for 43058-done@debbugs.gnu.org; Sun, 25 Sep 2022 21:05:24 -0400 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 8F6ADF08E3; Mon, 26 Sep 2022 10:05:19 +0900 (JST) (envelope-from mituharu@math.s.chiba-u.ac.jp) Date: Mon, 26 Sep 2022 10:05:19 +0900 Message-ID: From: YAMAMOTO Mitsuharu To: Eli Zaretskii Subject: Re: bug#43058: 27.1; Support for other colour font formats In-Reply-To: <83k05rnanp.fsf@gnu.org> References: <83v9h537tj.fsf@gnu.org> <831qs3ubnm.fsf@gnu.org> <83k05rnanp.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: Faculty of Science, Chiba University MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43058-done Cc: lists.gnu.org@mavit.org.uk, 43058-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sun, 25 Sep 2022 17:03:22 +0900, Eli Zaretskii wrote: > > > 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. > > OK, thanks. I think on balance this means we should install this, so > please push to the master branch. Done. According to Peter, the patch enables us to display some COLRv0 variant of OpenMoji Color font on Emacs. (I also confirmed that with cairo 1.17.4). So closing the bug. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp From unknown Mon Jun 23 02:23:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 24 Oct 2022 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator