From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20727: 24.5; Font fallback doesn't work for the Emoji range Date: Mon, 08 Jun 2015 17:30:25 +0300 Message-ID: <83y4jul1by.fsf@gnu.org> References: <83k2vkr43f.fsf@gnu.org> <83616zmigd.fsf@gnu.org> <833822ncny.fsf@gnu.org> <20150608054304.GA518@odonien> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1433774017 16992 80.91.229.3 (8 Jun 2015 14:33:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jun 2015 14:33:37 +0000 (UTC) Cc: 20727@debbugs.gnu.org To: Vasilij Schneidermann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 08 16:33:26 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z1y70-0006w6-Gw for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Jun 2015 16:33:14 +0200 Original-Received: from localhost ([::1]:58302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1y70-00009e-0d for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Jun 2015 10:33:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1y6s-000079-Vv for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2015 10:33:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1y6p-00069u-3v for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2015 10:33:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1y6p-00069h-1s for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2015 10:33:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z1y6o-0005Vz-Km for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2015 10:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Jun 2015 14:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20727 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 20727-submit@debbugs.gnu.org id=B20727.143377393421142 (code B ref 20727); Mon, 08 Jun 2015 14:33:02 +0000 Original-Received: (at 20727) by debbugs.gnu.org; 8 Jun 2015 14:32:14 +0000 Original-Received: from localhost ([127.0.0.1]:45308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z1y5y-0005Um-JO for submit@debbugs.gnu.org; Mon, 08 Jun 2015 10:32:14 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:47108) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z1y5r-0005U6-Tw for 20727@debbugs.gnu.org; Mon, 08 Jun 2015 10:32:08 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NPM00L00QXWD200@mtaout26.012.net.il> for 20727@debbugs.gnu.org; Mon, 08 Jun 2015 17:32:47 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NPM00E7GR2MWV80@mtaout26.012.net.il>; Mon, 08 Jun 2015 17:32:47 +0300 (IDT) In-reply-to: <20150608054304.GA518@odonien> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103749 Archived-At: > Date: Mon, 8 Jun 2015 07:43:04 +0200 > From: Vasilij Schneidermann > Cc: Glenn Morris , 20727@debbugs.gnu.org > > > The "open" entry means Emacs decided to use that font. Does "DejaVu > > Sans Mono" have glyphs for those characters? > > I use `gucharmap` to look up glyphs in fonts, you can find it with C-f > by its name. Selecting "DejaVu Sans Mono" as font and the "Show only > glyphs from this font" option from the "View" menu confirms that this > font doesn't have a glyph for it. Does the full value of font-log suggest that Emacs even tried to consider the Symbola font at some point? My reading of the code seems to indicate that Emacs won't try any font that's not in the fontset, for characters that don't have a charset ID (which is what happens with symbols, see below). > What struck me as odd however is that Emacs appears to select glyphs by > script and that there's no "Symbol" script in this font viewer (or more > likely, not in Unicode at all). Perhaps here lies the problem. There's elaborate setup in fontset.el for selecting fonts by script, so the fact that HELLO displays correctly is not a miracle. Moreover, for characters that belong to known charsets -- something that happens for every letter in some language or script -- Emacs queries available fonts by charset, so it can find fonts that are not in the fontset, I think. However 'symbol' is not a script nor a charset; Emacs conflates into that pseudo-script all the Unicode blocks that define symbols of some kind, for which the OTF spec does not define a script tag (for the list of tags see https://www.microsoft.com/typography/otspec/scripttags.htm). We can also look up fonts by family, registry, and charset, but none of this helps with symbols, like it does with "real" scripts and character sets. So I think we pretty much depend on the fonts in the default fontset for supporting symbols in general and Emoji in particular. Therefore, I think we should augment the default fontset to include good fonts for symbols for which the "usual" fonts rarely if ever contain glyphs. The problem is that most such fonts are not free. Is Symbola free? There's GNU Unifont, which is free, and is already in the default fontset, but IMO many of its glyphs are really of low quality. Do you have that installed? I'm guessing not.