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: Sat, 09 Apr 2016 22:46:20 +0300 Message-ID: <834mbain03.fsf@gnu.org> References: <570954AA.7070604@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 1460231240 29630 80.91.229.3 (9 Apr 2016 19:47:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Apr 2016 19:47:20 +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 Sat Apr 09 21:47:15 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 1aoyqg-0006b6-Tb for ged-emacs-devel@m.gmane.org; Sat, 09 Apr 2016 21:47:15 +0200 Original-Received: from localhost ([::1]:32898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoyqg-0004r7-9y for ged-emacs-devel@m.gmane.org; Sat, 09 Apr 2016 15:47:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoyqS-0004mt-UO for emacs-devel@gnu.org; Sat, 09 Apr 2016 15:47:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoyqP-0004WY-NJ for emacs-devel@gnu.org; Sat, 09 Apr 2016 15:47:00 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoyqP-0004WU-Jy; Sat, 09 Apr 2016 15:46:57 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2190 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aoyqO-00079I-U0; Sat, 09 Apr 2016 15:46:57 -0400 In-reply-to: <570954AA.7070604@gmail.com> (message from =?utf-8?Q?Cl=C3=A9?= =?utf-8?Q?ment?= Pit--Claudel on Sat, 9 Apr 2016 15:14:50 -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:202830 Archived-At: > From: Clément Pit--Claudel > Date: Sat, 9 Apr 2016 15:14:50 -0400 > > Since my main programming font does not cover all the mathematical symbols I need, I initially set up font fallback as shown below: > > (set-fontset-font t 'unicode (font-spec :name "FreeMono") nil 'append) > (set-fontset-font t 'unicode (font-spec :name "Symbola") nil 'append) 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? > 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. But let's first see the specific problems you have with the Emacs 25 defaults. This issue got some attention a few months ago, so I'm surprised to hear there are still problems in that area. > *Note*: for testing purposes, here are a few math characters: `ℕ𝓟⧺×≠≥≤±¬∨∧∃∀λ⟿⟹⊥⊤⊢` Which, if any, of those give you trouble with the default fontset?