From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: otf ligature rendering support? Date: Fri, 02 Jan 2015 17:45:09 +0200 Message-ID: <83tx099ofu.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1420213544 19304 80.91.229.3 (2 Jan 2015 15:45:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Jan 2015 15:45:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 02 16:45:38 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Y74Py-000571-7M for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Jan 2015 16:45:38 +0100 Original-Received: from localhost ([::1]:51783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y74Pw-0002tz-Rq for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Jan 2015 10:45:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y74Pc-0002tt-OM for help-gnu-emacs@gnu.org; Fri, 02 Jan 2015 10:45:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y74PZ-0005mo-GD for help-gnu-emacs@gnu.org; Fri, 02 Jan 2015 10:45:16 -0500 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:56645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y74PZ-0005mi-7v for help-gnu-emacs@gnu.org; Fri, 02 Jan 2015 10:45:13 -0500 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NHK00J0030ADP00@mtaout27.012.net.il> for help-gnu-emacs@gnu.org; Fri, 02 Jan 2015 17:37:22 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NHK00CME3EASC80@mtaout27.012.net.il> for help-gnu-emacs@gnu.org; Fri, 02 Jan 2015 17:37:22 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101833 Archived-At: > From: Yuri D'Elia > Date: Fri, 02 Jan 2015 16:32:31 +0100 > > I'm not fully aware of how much otf is supported in emacs, but I found a > good reason to want ligatures in a monospaced font: > > http://www.fsd.it/fonts/pragmatapro/PragmataPro_Haskell_liga.png > > PragmataPro supports ligatures for a good set of common operators. This > makes it much less troublesome than "prettify-symbols-mode" since > indentation/spacing is not changed. > > How would I enable the proper GSUB feature in emacs? Are ligatures > supported at all? > > I can specify otf parameters in `font-spec', but the following: > > (set-fontset-font nil 'latin > (font-spec :family "PragmataPro" > :otf '(latn nil (liga)))) > > Doesn't really show any ligatures (or any other otf feature). > Am I doing something wrong? I think you need to define rules for composing characters into ligatures, in order to have what you want.