GNU bug report logs - #43058
27.1; Support for other colour font formats

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Peter Oliver <lists.gnu.org@HIDDEN>; dated Wed, 26 Aug 2020 12:25:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 43058 <at> debbugs.gnu.org:


Received: (at 43058) by debbugs.gnu.org; 26 Aug 2020 15:12:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 26 11:12:17 2020
Received: from localhost ([127.0.0.1]:40464 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kAx61-0007LR-4m
	for submit <at> 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 <lists.gnu.org@HIDDEN>) id 1kAx5y-0007LE-JH
 for 43058 <at> 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 <at> 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 <lists.gnu.org@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#43058: 27.1; Support for other colour font formats
In-Reply-To: <83v9h537tj.fsf@HIDDEN>
Message-ID: <alpine.LFD.2.23.451.2008261510400.3319@HIDDEN>
References: <w535z95lhne.fsf@HIDDEN>
 <83v9h537tj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed;
 BOUNDARY="-1463811583-587403177-1598451811=:3319"
Content-ID: <alpine.LFD.2.23.451.2008261555401.3319@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 43058
Cc: 43058 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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: <alpine.LFD.2.23.451.2008261555402.3319@HIDDEN>

On Wed, 26 Aug 2020, Eli Zaretskii wrote:
OB
>> From: Peter Oliver <lists.gnu.org@HIDDEN>
>> 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--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43058; Package emacs. Full text available.

Message received at 43058 <at> debbugs.gnu.org:


Received: (at 43058) by debbugs.gnu.org; 26 Aug 2020 12:34:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 26 08:34:05 2020
Received: from localhost ([127.0.0.1]:37653 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kAucv-0004Dd-IU
	for submit <at> 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 <eliz@HIDDEN>) id 1kAuct-0004D2-RZ
 for 43058 <at> 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 <eliz@HIDDEN>)
 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 <eliz@HIDDEN>)
 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@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Peter Oliver <lists.gnu.org@HIDDEN>
In-Reply-To: <w535z95lhne.fsf@HIDDEN> (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: <w535z95lhne.fsf@HIDDEN>
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 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Peter Oliver <lists.gnu.org@HIDDEN>
> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#43058; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Aug 2020 12:24:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 26 08:24:33 2020
Received: from localhost ([127.0.0.1]:37631 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kAuTg-0003xa-MS
	for submit <at> 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 <mavit@HIDDEN>) id 1kAuTc-0003xR-SD
 for submit <at> 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 <mavit@HIDDEN>)
 id 1kAuTc-0000qE-MM
 for bug-gnu-emacs@HIDDEN; 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 <mavit@HIDDEN>)
 id 1kAuTZ-0004yL-Rg
 for bug-gnu-emacs@HIDDEN; Wed, 26 Aug 2020 08:24:28 -0400
Received: by mail-wm1-f52.google.com with SMTP id a65so1540405wme.5
 for <bug-gnu-emacs@HIDDEN>; 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 <bug-gnu-emacs@HIDDEN>
 (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 <bug-gnu-emacs@HIDDEN>; 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 <lists.gnu.org@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.1; Support for other colour font formats
Date: Wed, 26 Aug 2020 13:24:05 +0100
Message-ID: <w535z95lhne.fsf@HIDDEN>
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@HIDDEN;
 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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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




Acknowledgement sent to Peter Oliver <lists.gnu.org@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#43058; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 26 Aug 2020 15:15:02 UTC

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