From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Ligatures (was: Unify the Platforms: Cairo+FreeType+Harfbuzz Everywhere (except TTY)) Date: Fri, 22 May 2020 10:34:06 -0400 Message-ID: References: <20200517165953.000044d2@web.de> <0ccae2a4-533b-d15c-2884-c2f00b067776@gmail.com> <83wo5987mk.fsf@gnu.org> <99d4beed-88ae-b5cd-3ecb-a44325c8a1dc@gmail.com> <20200518215908.GA57594@breton.holly.idiocy.org> <83mu6481v3.fsf@gnu.org> <75a90563-51b4-d3b8-4832-fc0e2542af0d@gmail.com> <83blmi7hys.fsf@gnu.org> <837dx55qff.fsf@gnu.org> <834ks95cmz.fsf@gnu.org> <4faa291f-f2df-36d1-73d5-332b93a9b6d8@gmail.com> <83wo544hx5.fsf@gnu.org> <831rnc43ih.fsf@gnu.org> <83ftbs2jr5.fsf@gnu.org> <838shk2ga3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="10266"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: alan@idiocy.org, pipcet@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 22 16:34:59 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 1jc8lH-0002VI-IN for ged-emacs-devel@m.gmane-mx.org; Fri, 22 May 2020 16:34:59 +0200 Original-Received: from localhost ([::1]:50452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jc8lG-0003O4-Lb for ged-emacs-devel@m.gmane-mx.org; Fri, 22 May 2020 10:34:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jc8kV-0002X8-B5 for emacs-devel@gnu.org; Fri, 22 May 2020 10:34:11 -0400 Original-Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]:36369) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jc8kU-0002D9-Dr; Fri, 22 May 2020 10:34:11 -0400 Original-Received: by mail-qv1-xf2d.google.com with SMTP id f89so4806701qva.3; Fri, 22 May 2020 07:34:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=1aJg5fxw9uqeYI1xYIIN30Ug9NfLTZDFMAwo8TP8bL8=; b=siT8+PbmPOvDmb9vsdSXjXgrX1FLtn4+7Q87a6AT9xWgsKC0GhkBGcLqvS0bA+4cfW J+dyZ+V7WNu1W0caZHxCt+R3PWUVrcST7lhwJjjUglVIBu0STSxhi7c1z2R/B8uQGLfA QlmFtONjNf3iu6CjmYXUiF4I6QizLXqHyp7GxObU+Qyl6zjiZsj0HVG7KgXDGbkSxVxT 6abPCM5UjR972x/kMjV+vfcNTXKQY8trb9cpPyVCgsfz+QSMkoib0iLmZW6bVNP43Ugp Cquphclj5Ek6uCfn1/oGEZTYopLJEBmaNknlUUn6YCIzACjeYLDrmoYHNj+6ZCPv12gx SMZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1aJg5fxw9uqeYI1xYIIN30Ug9NfLTZDFMAwo8TP8bL8=; b=CJmmzB3O6CPf4xfs1IDHZDOc9qSl9ClT6prTVJQMKNzRXGiYjzuAe4zNspoUEdwpu1 5NbkR6nrHeDZf0IC1hA4elocV6DYWDbv4OgtPpsetoBKpxliaUx/4s8kqTfdcI4OsEq3 Wgdw/P8wuviYwT9LLNDhwffUu2joYKbZx0IRCZXU2BS4HY7jSnoYaxYxnqros2/ZOBe2 1Agz3/xzSEPa1b/Qwu4Pd7td9bU+trrcC6iPSAzNYbzQXHMZYjXjQ0jVsuvHz2SSuBPq Whm7UaFsw6otT2nA1KQ5mRXL2o4o/I8M4WwpYnkJ3DSrzXxVEtHf/tAxbs14/aqeMLYn q4bg== X-Gm-Message-State: AOAM530fPibzS3hu6uhxAGBlCj6KG9RCtfyIDByd1kP5KivybWYQt/hx vn6lYK/FRNl75neVJJHDg6M7yiPl X-Google-Smtp-Source: ABdhPJwOlqVAxkPdk3KVU6qrovzRl0ifz1mC65IiU2jr4ABr9wn3hRpIZ0XLGDPFZCtSloRsiohNNw== X-Received: by 2002:a05:6214:7e7:: with SMTP id bp7mr4095887qvb.125.1590158048611; Fri, 22 May 2020 07:34:08 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:bda5:ac5c:1de0:b677? ([2601:184:4180:66e7:bda5:ac5c:1de0:b677]) by smtp.googlemail.com with ESMTPSA id a62sm1019070qkg.71.2020.05.22.07.34.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 May 2020 07:34:08 -0700 (PDT) In-Reply-To: <838shk2ga3.fsf@gnu.org> Content-Language: en-GB Received-SPF: pass client-ip=2607:f8b0:4864:20::f2d; envelope-from=cpitclaudel@gmail.com; helo=mail-qv1-xf2d.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:251233 Archived-At: On 22/05/2020 10.30, Eli Zaretskii wrote: >> Cc: alan@idiocy.org, emacs-devel@gnu.org >> From: Clément Pit-Claudel >> Date: Fri, 22 May 2020 09:29:57 -0400 >> >>> Do font designers really support ligatures from >>> any arbitrary combination of characters? If so, where can I read >>> about this? >> >> Yes; that's what I was alluding to in my example with comment signs and arrows. I think the pictures on https://github.com/tonsky/FiraCode should be illuminating. >> >> I hope I'm not misunderstanding your question :/ > > I was talking about ligatures made from letters, not symbols. But then how do you handle symbol ligatures? You showed the example below in response to Pip's suggestion of using .+ to support everything that I had mentioned; was that only for letters? What about symbols then? (set-char-table-range composition-function-table '(?f . ?f) (list (vector "ffi" 0 'compose-gstring-for-graphic)))