all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Vasilij Schneidermann <v.schneidermann@gmail.com>
Cc: 20727@debbugs.gnu.org
Subject: bug#20727: 24.5; Font fallback doesn't work for the Emoji range
Date: Mon, 08 Jun 2015 17:30:25 +0300	[thread overview]
Message-ID: <83y4jul1by.fsf@gnu.org> (raw)
In-Reply-To: <20150608054304.GA518@odonien>

> Date: Mon, 8 Jun 2015 07:43:04 +0200
> From: Vasilij Schneidermann <v.schneidermann@gmail.com>
> Cc: Glenn Morris <rgm@gnu.org>, 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.





  reply	other threads:[~2015-06-08 14:30 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-03 17:22 bug#20727: 24.5; Font fallback doesn't work for the Emoji range Vasilij Schneidermann
2015-06-03 19:20 ` Eli Zaretskii
2015-06-03 20:32   ` Vasilij Schneidermann
2015-06-07 18:09   ` Glenn Morris
2015-06-07 19:22     ` Eli Zaretskii
2015-06-08  0:15       ` Glenn Morris
2015-06-08  2:42         ` Eli Zaretskii
2015-06-08  5:43           ` Vasilij Schneidermann
2015-06-08 14:30             ` Eli Zaretskii [this message]
2015-06-08 14:52               ` Andreas Schwab
2015-06-08 18:06                 ` Eli Zaretskii
2015-06-09 11:48                   ` Andy Moreton
2015-06-09 15:17                     ` Eli Zaretskii
2015-06-09 16:29                       ` Andy Moreton
2015-06-09 16:48                         ` Eli Zaretskii
2015-06-12 16:05                           ` Glenn Morris
2015-06-12 19:32                             ` Eli Zaretskii
2015-06-08 15:59               ` Vasilij Schneidermann
2015-06-12 20:57 ` Paul Eggert
2015-06-13  7:04   ` Eli Zaretskii
2015-06-13  7:39   ` Eli Zaretskii
2015-06-13  9:12   ` Eli Zaretskii
2015-06-13 11:54     ` Eli Zaretskii
2015-06-13 16:01       ` Paul Eggert
2015-06-13 16:32         ` Eli Zaretskii
2015-06-13 17:04           ` Eli Zaretskii
2015-06-13 17:10             ` Paul Eggert
2015-06-13 18:31               ` Eli Zaretskii
2015-06-13 19:02                 ` Paul Eggert
2015-06-13 19:09                   ` Eli Zaretskii
2015-06-13 17:07           ` Paul Eggert
2015-06-13 17:57             ` Eli Zaretskii
2015-06-13 18:47               ` Paul Eggert
2015-06-13 19:03                 ` Eli Zaretskii
2015-06-13 21:19                   ` Paul Eggert
2015-06-14  2:46                     ` Eli Zaretskii
2015-06-14 15:08                       ` Eli Zaretskii
2015-06-14 16:14                       ` Paul Eggert
2015-06-14 17:37                         ` Eli Zaretskii
2015-06-14 20:39                           ` Paul Eggert
2015-06-15 16:14                             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83y4jul1by.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=20727@debbugs.gnu.org \
    --cc=v.schneidermann@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.