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 Date: Mon, 18 May 2020 15:38:21 -0400 Message-ID: References: <20200517124125.000013a4@web.de> <97C7EAB7-10AB-4702-ABC8-EB6C1C50ABDB@gnu.org> <20200517165953.000044d2@web.de> <83lflqblp0.fsf@gnu.org> <83ftbybio3.fsf@gnu.org> <83zha69xs2.fsf@gnu.org> <83367x9qeq.fsf@gnu.org> <83y2pp88lw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="104848"; 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 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 18 21:40:18 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 1jalcY-000RCA-9g for ged-emacs-devel@m.gmane-mx.org; Mon, 18 May 2020 21:40:18 +0200 Original-Received: from localhost ([::1]:56470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jalcX-0000n5-CL for ged-emacs-devel@m.gmane-mx.org; Mon, 18 May 2020 15:40:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jalak-0006so-Fg for emacs-devel@gnu.org; Mon, 18 May 2020 15:38:26 -0400 Original-Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:39984) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jalaj-00037Z-G0 for emacs-devel@gnu.org; Mon, 18 May 2020 15:38:26 -0400 Original-Received: by mail-qt1-x834.google.com with SMTP id c24so9151401qtw.7 for ; Mon, 18 May 2020 12:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=g9n7U9JPXkZL76mnJ5tPGavpLfCyFO3gjq1H3K4P7mk=; b=Ny/WG7yygzCvTGT9c7dN9zyQBuLXAamrscab2pdvUCv7Rf/0o5zpFTBeI0pwvrG8xe vA3Jay7KHfZO02iqASwj3tC1lgZ6d04S/8uC3aRocw6NW2bQ+dXsgLx96y5965/wGFOe C1uhZR/k++q6INLyamnj0FuWTqSFuzJx5DU20M5LxU4w2RiPZ21NZrlG+XGKVavAE4y4 A69ilreHlFdLTbPq5MH9NP5jps5mQc4mNzVnJJSlKYa1Yw1M7VGzZyuMfns69WLY/YO/ uXt8+4M/+Ur39MKApqtmkLWhvbZQnraHEk/w5zUcqOH6lphYM41lzUN7YsLmzDTyUL29 yW8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=g9n7U9JPXkZL76mnJ5tPGavpLfCyFO3gjq1H3K4P7mk=; b=FBDHc8lhNW8IQXyEqvJjZ9LcWk4nN3ET0mjpR2Bp/Zy39N1fEnpBcaUNmVbUolaGBG /LFJ9xjoCth2iOarervYKriOjM7l3/ISqYzXHf/xdV9C5GlzlR0qxzoSGgJK0Cp8mwpp SVZLCNYAX2ZfjRx1Eb6BYvdfOrjQfoZoOy335kdntqMFYGn6eFG7bZIkPH0O7THdhbTM W/X60X5aJlOKmeVqRd58XOBlSB0bn1wFIewXWAYfNcJSLMRyoL1xfu9xl8vfghnTlR/9 6v1NnGZ61HOQVsgGRf82ORr10xw/tSJ/jqF7yHKPCm6J8mXpSrUtYjaQEyexhVsTVsdL APUw== X-Gm-Message-State: AOAM531dvYJgtJ0GFjdS6/QUGh2dezA1cZXHi6IEXdrtkMRcaKX5yoKW zG8D6lwVnuK9NWXQDhYr3Z8DahVP X-Google-Smtp-Source: ABdhPJzMQqBlkhwHQWjf5s549LytKy65mg3uTZQ4ucR8jtBZwqr5qgz47CUtSIOlHV/hZRArVXypJw== X-Received: by 2002:ac8:1aab:: with SMTP id x40mr18445099qtj.358.1589830703172; Mon, 18 May 2020 12:38:23 -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 g26sm9787384qtk.76.2020.05.18.12.38.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 May 2020 12:38:22 -0700 (PDT) In-Reply-To: Content-Language: en-GB Received-SPF: pass client-ip=2607:f8b0:4864:20::834; envelope-from=cpitclaudel@gmail.com; helo=mail-qt1-x834.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 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:250815 Archived-At: On 18/05/2020 15.19, Pip Cet wrote: > So such clusters would be marked as atomic? I like Stefan's proposal, > and maybe it's what LibreOffice actually does: at large font sizes, > the horizontal division of "subglyphs" seems off. Yup, that's what Firefox and LibreOffice do. >>> If Harfbuzz could tell us more precisely how to divide the glyph into >>> subglyphs, we could do a better job, of course. >> >> I don't think it's possible because AFAIK fonts don't store this >> information. > > Well, they should! They can, but few do (the LigatureCaretList subtable within the GDEF table) >> It should be possible, of course, to have a private >> database of such offsets, but I don't really see how it could work in >> general. > > And this is where it gets back to "let's not hardcode the dependency > on Harfbuzz and FreeType, because other backends might actually give > us the information we need". Harfbuzz can give us this info: hb_ot_layout_get_ligature_carets