From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: When and how to register various font backends Date: Fri, 14 Jun 2019 15:19:14 +0300 Message-ID: <83blz0xsu5.fsf@gnu.org> References: <83tvd1p4jm.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="80384"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 14 14:31:14 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hblMQ-000Kdq-1q for ged-emacs-devel@m.gmane.org; Fri, 14 Jun 2019 14:31:14 +0200 Original-Received: from localhost ([::1]:51076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hblMO-0008JA-VO for ged-emacs-devel@m.gmane.org; Fri, 14 Jun 2019 08:31:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54285) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hblAr-0001RI-Qs for emacs-devel@gnu.org; Fri, 14 Jun 2019 08:19:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hblAq-0001LY-Ac; Fri, 14 Jun 2019 08:19:17 -0400 Original-Received: from [176.228.60.248] (port=1632 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hblAn-0000dL-J0; Fri, 14 Jun 2019 08:19:14 -0400 In-reply-to: (message from Robert Pluim on Fri, 14 Jun 2019 11:14:17 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237601 Archived-At: > From: Robert Pluim > Cc: emacs-devel@gnu.org, YAMAMOTO Mitsuharu > Date: Fri, 14 Jun 2019 11:14:17 +0200 > > Currently under X11 the font backends end up as > > (xft xfthb x) > > Reordering that to put xfthb first is a matter of reordering the > register_font_driver calls in Fx_create_frame That's true, but we don't want to have 3 font backends in the list, because then looking for a font that isn't available on the system will take much longer (Emacs tries to find the font with each backend in turn). We want to have only 2 backends by default. > Since xfthb is strictly better than xft, as far as I can tell, and we > want people to actually use it, we should just prefer it for emacs-27, > and remove the xft and x backends in emacs-28. I'm not sure removing x (and gdi on Windows) is a good idea, even in Emacs 28. I understand (more accurately, was told very recently) that HarfBuzz was designed to be able to work with any font, not just OTF, but I'm not sure our integration of HarfBuzz allows that. We should actively test that with old fonts, like bitmapped fonts and BDF, before we make the decision. For example, I suspect the methods we currently use for finding fonts suitable for HarfBuzz filter out non-OTF fonts (at least on Windows, this is definitely so). > default-frame-alist and similar will still be available for people > who absolutely want to turn it off The main issue at hand is how to allow users to specify the non-preferred backends when they want that. See Yamamoto-san's message about that.