From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= Newsgroups: gmane.emacs.help Subject: use-default-font-for-symbols vs. emojis (was: Wrestling with set-fontset-font) Date: Fri, 27 Dec 2019 19:52:49 +0100 Message-ID: <87mubd61oe.fsf@gmail.com> References: <878sn2hps2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="34826"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 27 19:55:36 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ikuls-0008ua-Jq for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Dec 2019 19:55:36 +0100 Original-Received: from localhost ([::1]:38002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikulr-0005VC-HU for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Dec 2019 13:55:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60211) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikujK-0004m0-Ej for help-gnu-emacs@gnu.org; Fri, 27 Dec 2019 13:52:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ikujI-0001mT-TG for help-gnu-emacs@gnu.org; Fri, 27 Dec 2019 13:52:58 -0500 Original-Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:41473) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ikujI-0001lB-FN for help-gnu-emacs@gnu.org; Fri, 27 Dec 2019 13:52:56 -0500 Original-Received: by mail-wr1-x42e.google.com with SMTP id c9so26882425wrw.8 for ; Fri, 27 Dec 2019 10:52:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=FEFlq8pqimlIFAiIPR1L43pY593tECluihx8Aqo6nMM=; b=fHildmQPC/GbK1GcQ5a5ny3OzNHMpnMGE/LM4+i0lJkXlWffRZ3f+aKNgxbp0Wc8A6 9OvLF1Jgdmk3/zfbr9EK2EBVHT4DC/ezkdMZfugUvk7aKlcVeiqKCfN3rMzix3dn8gZG sFweQ8nkeU5kBxUBOKo3C9Yb0YJvvrrXd9NzSmB3bmVZBGR4moJUO53Q6fwYxcUeQu35 P9LkBDY65keBH+z8M6H67+7yp7xyR+g+vSO61g4Ng1Xn2YRMc4Yo9zBVFNEE+r1MPjO2 NLc+Ky822XXQn69VFAAxfjuXZ8X/mpvyVclRxSZjfJuRv7y9sibgMzuaqWdpdt3SByEO SJjw== 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:references:date:message-id :user-agent:mime-version:content-transfer-encoding; bh=FEFlq8pqimlIFAiIPR1L43pY593tECluihx8Aqo6nMM=; b=EEJQY/vHjKeG9z4x1R3Ya9KhF+Q9NxTgCwxSjK34YNCxUw+CQgTv43fCguLhZxB7nC bbIHahsdqv9C/Xck2t5v0aQFEJeGwKRaFtKH5Dqr1Py1zCsgqiDfUgt2Y+9umZVAlmbM kiyqbBPFhQ7wO8GaprwC9ws66J77kKXQOPOYjBjljny+eicbIzh86PRWEkyACbgZyeuy kF16ccFQYQL54/U+2XoWGSH2/CZ2XitFpzoHOnjJfD2oYz69uhOSI9jtpmgHBp7V8jZc W5covvGuEeI8dUHuqTDSo/2tczekTtulPtf7RMzyzMT/6REqf2PFag2eSyjNJHiz7lEg 9rqQ== X-Gm-Message-State: APjAAAU+EGM1izqtaTSJP3wSrVerk+xRMDo0evZJKe3/s0Lv25IwEZmY opiKewd63m/Hnuf8a1IzLF0C50yy X-Google-Smtp-Source: APXvYqxstf7TQ4jL/3eXm1pLptPcsdWhy+M+CmkNTT4jypXtKD+16jSrSvadwzT06b7PHk21Gowb4g== X-Received: by 2002:a5d:6652:: with SMTP id f18mr53705254wrw.246.1577472770719; Fri, 27 Dec 2019 10:52:50 -0800 (PST) Original-Received: from little-buster (2a01cb04010fc800a1a927f78dd8ce31.ipv6.abo.wanadoo.fr. [2a01:cb04:10f:c800:a1a9:27f7:8dd8:ce31]) by smtp.gmail.com with ESMTPSA id b17sm34681361wrp.49.2019.12.27.10.52.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2019 10:52:50 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:122108 Archived-At: > From: Eli Zaretskii > Emacs by default prefers using the default font for displaying symbol > and punctuation characters, if that font supports them. Set > use-default-font-for-symbols to nil to force Emacs always select the > font according to your fontsets, when it needs to display such > characters, even if the default font can display them. Thank you! (Note to self: when Info and Custom fail, there's always C-h v *keyword TAB=E2=80=A6) *skims comment in fontset.c:face_for_char* How interesting! > However, these considerations are unlikely to be relevant to > punctuation and other symbols, since the latter generally > aren't specific to any culture, and don't require > sophisticated OTF features. */ Do emojis challenge this heuristic, since - they can typically use "sophisticated OTF features" such as color, - combining sequences[1] are a thing? If so, could/should there be a way to distinguish "emoji" characters from the more general "symbol" script, using e.g. data from ? (I hope at least /some/ of the above makes sense. My knowledge of Fonts, the Unicode and Everything is anecdotal at best=E2=80=A6) PS: Sorry for not replying to your message Eli; I'm not subscribed to help-gnu-emacs, and I can't find an NNTP feed for it=E2=80=A6 [1] E.g. =F0=9F=A7=9F=E2=80=8D=E2=99=82=EF=B8=8F, =F0=9F=A7=9F=E2=80=8D=E2= =99=80=EF=B8=8F, =F0=9F=90=95=E2=80=8D=F0=9F=A6=BA, =F0=9F=8F=B4=E2=80=8D= =E2=98=A0=EF=B8=8F, from , or flag sequences from ; none of which work inside Emacs yet AFAICT. To be more precise: as of commit 9ee5af31, these examples appear "decombined". I have no idea what controls this (Harfbuzz? Cairo?)=E2= =80=A6 FWIW, on Debian Buster, these combinations work for some of XFCE's applications (e.g. Thunar, Mousepad) but not others (e.g. Terminal). (Well, some of these combinations anyway. No application seems to give the faithful U+1F415 U+200D U+1F9BA the love it deserves=E2=80=A6)