From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs 28: Specific TTF font gets loaded with font-backend x instead of ftcrhb Date: Tue, 04 Feb 2020 21:08:03 +0200 Message-ID: <83eevagoh8.fsf@gnu.org> References: <87pneu1u9e.fsf@gnu.org> <83mu9ygyi7.fsf@gnu.org> <87imkmi46d.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="16162"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 04 20:08:43 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1iz3Yx-00044W-3y for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 04 Feb 2020 20:08:43 +0100 Original-Received: from localhost ([::1]:36584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz3Yw-0000Ic-6s for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 04 Feb 2020 14:08:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39687) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iz3YV-0000EP-NM for help-gnu-emacs@gnu.org; Tue, 04 Feb 2020 14:08:16 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iz3YU-0005ZR-7X for help-gnu-emacs@gnu.org; Tue, 04 Feb 2020 14:08:15 -0500 Original-Received: from [176.228.60.248] (port=1961 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iz3YS-0003SH-Si; Tue, 04 Feb 2020 14:08:13 -0500 In-reply-to: <87imkmi46d.fsf@gnu.org> (message from Tassilo Horn on Tue, 04 Feb 2020 19:43:38 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122348 Archived-At: > From: Tassilo Horn > Cc: help-gnu-emacs@gnu.org > Date: Tue, 04 Feb 2020 19:43:38 +0100 > > Is "the new way" the thing with composition-function-table? Yes. We should use the so-called "automatic composition", which works via composition-function-table (as opposed to "static composition" currently used by prettify-symbols-mode). > Something like the Fira Code font emacs setup shown here? > > https://github.com/tonsky/FiraCode/wiki/Emacs-instructions#using-composition-char-table Something like that, yes. > I've tried that code although with the PragmataPro font in the hope it > would work at least partly given that both fonts offer a quite large > common subset of ligatures but couldn't see any difference, e.g., -> is > not composed to an arrow. That probably means PragmataPro doesn't support ligatures, at least not the one for ->. > Is there any documentation I could read? This area is notoriously under-documented. What we have (and it's abysmally insufficient) is this: . the code in composite.el, including the basic composition rules for accented characters . the code which sets composition-function-table in the various files under lisp/language/, where language-specific composition rules are provided . the doc string of composition-get-gstring (the only place where we document the form of the vectors shown by "C-u C-x =" for composed character sequences)