From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: how to detect that current font does not have particular unicode char Date: Sat, 19 Dec 2020 11:18:27 +0200 Message-ID: <837dpeupb0.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11566"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: yyoncho Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 19 10:19:54 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kqYP4-0002uD-Da for ged-emacs-devel@m.gmane-mx.org; Sat, 19 Dec 2020 10:19:54 +0100 Original-Received: from localhost ([::1]:44000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqYP3-0004aL-GG for ged-emacs-devel@m.gmane-mx.org; Sat, 19 Dec 2020 04:19:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqYNx-0003wA-8G for emacs-devel@gnu.org; Sat, 19 Dec 2020 04:18:46 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53535) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqYNx-0008BW-0F; Sat, 19 Dec 2020 04:18:45 -0500 Original-Received: from [176.228.60.248] (port=2772 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kqYNw-0006Lk-BE; Sat, 19 Dec 2020 04:18:44 -0500 In-Reply-To: (message from yyoncho on Sat, 19 Dec 2020 10:54:35 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:261241 Archived-At: > From: yyoncho > 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.