all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: yyoncho <yyoncho@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: how to detect that current font does not have particular unicode char
Date: Sat, 19 Dec 2020 13:33:05 +0200	[thread overview]
Message-ID: <CACCVLQWG2dW4LgxHbSVmazV_V7PdimReMPA9dpcVkFBnm5VJ2g@mail.gmail.com> (raw)
In-Reply-To: <837dpeupb0.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 721 bytes --]

Thank you for your reply.

What kind of fallback?


I want to detect if char is visible and use a different one. E. g. bulb can
be replaced with "!".


> 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?
>

Yes.


> 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.
>

I will try that out. I am not sure what FONT-OBJECT parameter stands for?

Thanks,
Ivan

[-- Attachment #2: Type: text/html, Size: 1410 bytes --]

  reply	other threads:[~2020-12-19 11:33 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
2020-12-19 11:33   ` yyoncho [this message]
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=CACCVLQWG2dW4LgxHbSVmazV_V7PdimReMPA9dpcVkFBnm5VJ2g@mail.gmail.com \
    --to=yyoncho@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.