From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: When and how to register various font backends Date: Fri, 14 Jun 2019 11:14:17 +0200 Message-ID: References: <83tvd1p4jm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="189013"; mail-complaints-to="usenet@blaine.gmane.org" Cc: YAMAMOTO Mitsuharu , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 14 11:16:07 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 1hbiJa-000msb-S6 for ged-emacs-devel@m.gmane.org; Fri, 14 Jun 2019 11:16:06 +0200 Original-Received: from localhost ([::1]:49514 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbiJZ-0003nd-Sn for ged-emacs-devel@m.gmane.org; Fri, 14 Jun 2019 05:16:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36904) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbiI2-0003mA-Sl for emacs-devel@gnu.org; Fri, 14 Jun 2019 05:14:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbiHx-0008Jz-Qz for emacs-devel@gnu.org; Fri, 14 Jun 2019 05:14:28 -0400 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:43301) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbiHx-0008HA-Kr; Fri, 14 Jun 2019 05:14:25 -0400 Original-Received: by mail-wr1-x42b.google.com with SMTP id p13so1677166wru.10; Fri, 14 Jun 2019 02:14:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=4E5VuuH/sfNgoRgr55SB0dEbm8+DWs01bzufSbo3lXM=; b=dbkZWwq7Ud2maOnQHreFtsnO+ac78YEIUiqgP164CIJwwpAZA0UB8HMLmeFq5KDR8Q vXMWyGysJJcu/i2Cs6JWBkHQYc/YOCH3uimaw1OoYiYTjL5orNBUiZJH7tjwLrAw9HJJ LCo/ws8n0/TlxThiaUoyorqhZYCx0SgG0gpBakQw9h8drsrIrzF5TMwO7LheIhnsXAfU tJpDtzwrxnUI0pvwCKR7UJBvAkJbmRfU9rmWSucSAvlvJUiE4ymGPtugj7QclZXbbcMb C5agZRbVKR3KzsCR+s4gpJKyhHOIkf4JA9GbdY8D5yY523VBzLtJETXJ8yCmmVlZuQe+ ddpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=4E5VuuH/sfNgoRgr55SB0dEbm8+DWs01bzufSbo3lXM=; b=uZW3eowqSucjlkPrNPr5d+9tZLLT1GaAq788+MuWYFNYaZwcbf2O9QJ9B+lBQCtHnI C3A8jEyfrueWAqvL48N/ZUdEfr5t+gud0UXxHn5nTn5LVfsfVamu5XgIF+fh/xGRh3dS RyP9zSp+Upr9oVZByEFdSj4uMgHGEK6MlCEkUJ+mPPN5NCLg30/JG1DDL7kjncmNzSjX BhN+bZXb1p/UYm3hyhspayxrNbxQQL4nCvu0WO8oAbFS05401+V6Jlm/EcBvDLm3n23q 8PeKd4idAOMUTtbO2tIxg3ISUB1VC/pPdPEwVpdJcnsiY7YLn7dKV10B22qFdoVPUdKN qjnw== X-Gm-Message-State: APjAAAX8krc+rHjfZuWE9gwdLuNFTQ5Aexwvnp4r2aNzVXpX6f+GVLzn FmgFoYJhhVQeR1jAnfG5lgn1+Zy4OL8= X-Google-Smtp-Source: APXvYqw+FS7G20rfHbFs000wGDFIiaUw/xJ9O1bidqoWG4AlPyeXIEOj+2NJEGMKRFtNiEA8TZfWUw== X-Received: by 2002:adf:e84a:: with SMTP id d10mr1326335wrn.316.1560503660251; Fri, 14 Jun 2019 02:14:20 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id j189sm3987782wmb.48.2019.06.14.02.14.18 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 14 Jun 2019 02:14:19 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <83tvd1p4jm.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Jun 2019 22:40:45 +0300") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42b 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:237582 Archived-At: >>>>> On Fri, 07 Jun 2019 22:40:45 +0300, Eli Zaretskii said: Eli> The question is how to implement this preference. In the code tha= t is Eli> currently on master, you will see one way of implementing it in Eli> w32fns.c, where the Windows code creates GUI frames (look in Eli> x-create-frame). Basically, after determining whether Uniscribe w= as Eli> explicitly requested, this implementation registers or doesn't Eli> register Uniscribe for each new frame. This means the backends to= be Eli> available to a frame must be specified at frame creation time, or = be Eli> known by that time. Eli> Yamamoto-san suggested a slightly different way of implementing the Eli> same idea; I will let him explain his proposal in more detail. Eli> Each implementation produces a slightly different behavior. Since= I Eli> believe we should have the same behavior on all platforms, I would Eli> like people to express their opinions on the two implementation, so Eli> that we could eventually decide with which one to go, and implemen= t it Eli> for all platforms. I haven't seen the other proposal, but this strikes me as overly conservative, so I=CA=BCm going to propose the radical variant. 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 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. default-frame-alist and similar will still be available for people who absolutely want to turn it off (and as evidenced by bug#36171, HarfBuzz should be preferred by default). Robert