From: Eli Zaretskii <eliz@gnu.org>
To: yyoncho <yyoncho@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: how to detect that current font does not have particular unicode char
Date: Sat, 19 Dec 2020 11:18:27 +0200 [thread overview]
Message-ID: <837dpeupb0.fsf@gnu.org> (raw)
In-Reply-To: <CACCVLQXw-pmyRNTLsh5F0A7D362hr29bD8gF75Gb+Aea8RCimg@mail.gmail.com> (message from yyoncho on Sat, 19 Dec 2020 10:54:35 +0200)
> From: yyoncho <yyoncho@gmail.com>
> Date: Sat, 19 Dec 2020 10:54:35 +0200
>
> I am trying to implement an automatic fallback if the user has configured a font that does not have a
> particular unicode char (e. g. “💡” (U+1F4A1)).
What kind of fallback? IOW, what did you intend to do if you find out
that the font configured by the user does NOT have a glyph for the
character in question?
I'm asking because some fallbacks don't need to know whether a
particular font can display a particular character. But I'm not sure
those fallbacks are appropriate for your use case.
> I tried to use char-displayable-p but it seems like it is not
> what I am looking for.
I believe you want font-get-glyphs.
next prev parent reply other threads:[~2020-12-19 9:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-19 8:54 how to detect that current font does not have particular unicode char yyoncho
2020-12-19 9:18 ` Eli Zaretskii [this message]
2020-12-19 11:33 ` yyoncho
2020-12-19 12:00 ` 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=837dpeupb0.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=yyoncho@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.