From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How do I set up font fallback in a robust way? Date: Sun, 10 Apr 2016 05:44:58 +0300 Message-ID: <83y48mgp1x.fsf@gnu.org> References: <570954AA.7070604@gmail.com> <834mbain03.fsf@gnu.org> <57095F97.4060305@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1460256364 21664 80.91.229.3 (10 Apr 2016 02:46:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Apr 2016 02:46:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 10 04:45:58 2016 Return-path: Envelope-to: ged-emacs-devel@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 1ap5Nu-0006M5-5Y for ged-emacs-devel@m.gmane.org; Sun, 10 Apr 2016 04:45:58 +0200 Original-Received: from localhost ([::1]:33550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ap5Nt-0000nR-Dr for ged-emacs-devel@m.gmane.org; Sat, 09 Apr 2016 22:45:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ap5Na-0000iJ-5e for emacs-devel@gnu.org; Sat, 09 Apr 2016 22:45:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ap5NW-000402-U8 for emacs-devel@gnu.org; Sat, 09 Apr 2016 22:45:38 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ap5NW-0003zy-Q6; Sat, 09 Apr 2016 22:45:34 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2671 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ap5NW-0001ok-6C; Sat, 09 Apr 2016 22:45:34 -0400 In-reply-to: <57095F97.4060305@gmail.com> (message from =?utf-8?Q?Cl=C3=A9?= =?utf-8?Q?ment?= Pit--Claudel on Sat, 9 Apr 2016 16:01:27 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:202833 Archived-At: > Cc: emacs-devel@gnu.org > From: Clément Pit--Claudel > Date: Sat, 9 Apr 2016 16:01:27 -0400 > > On 04/09/2016 03:46 PM, Eli Zaretskii wrote: > > The default fontset already defines specific blocks to be handled by > > these fonts, see fontset.el. What problems, specifically, do you have > > with the default setup and the current emacs-25 branch? > > I get relatively inconsistent results in terms of which font is chosen to display a given symbol. I don't think I understand well enough what that means. This issue must be dealt with by presenting specific examples. > The pair of fonts that I mentioned (Ubuntu Mono and Symbola) was just an example; my question is about configuring fallbacks for any given pair of fonts: it could be Source Code Pro and Asana Math instead of Ubuntu Mono and Symbola, for example. I answered the general question already. You can find examples of that in fontset.el. > >> What's the proper way to configure font fallback? > > > > In general: find the characters you want to change and augment the > > default fontset to use the font you want for them. > > Is it enough to augment the default fontset? Changing the :height of the 'default font creates a new fontset, which doesn't respect the fallbacks that I configure. Again, please provide specific examples, because I don't think I understand how changing height could get in the way. > >> *Note*: for testing purposes, here are a few math characters: `ℕ𝓟⧺×≠≥≤±¬∨∧∃∀λ⟿⟹⊥⊤⊢` > > > > Which, if any, of those give you trouble with the default fontset? > > 𝓟 is displayed using `Latin Modern Math' in emacs -Q, it seems. Is that not okay for some reason? If so, why?