From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: An issue with GDI? [Windows] Date: Thu, 14 May 2020 20:38:56 +0300 Message-ID: <83tv0i4dsf.fsf@gnu.org> References: <2093331550.612340.1589464533075@mail1.libero.it> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="106722"; mail-complaints-to="usenet@ciao.gmane.io" Cc: angelo.g0@libero.it, emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 14 19:39:43 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 1jZHpf-000Rff-1T for ged-emacs-devel@m.gmane-mx.org; Thu, 14 May 2020 19:39:43 +0200 Original-Received: from localhost ([::1]:54904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZHpe-0006dc-3F for ged-emacs-devel@m.gmane-mx.org; Thu, 14 May 2020 13:39:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZHpC-0006EG-73 for emacs-devel@gnu.org; Thu, 14 May 2020 13:39:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38787) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZHpB-0008OW-PJ; Thu, 14 May 2020 13:39:13 -0400 Original-Received: from [176.228.60.248] (port=4200 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZHpB-0000tj-1d; Thu, 14 May 2020 13:39:13 -0400 In-Reply-To: (message from Juanma Barranquero on Thu, 14 May 2020 16:53:58 +0200) 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:250267 Archived-At: > From: Juanma Barranquero > Date: Thu, 14 May 2020 16:53:58 +0200 > Cc: Emacs developers > > By default, master on Windows is using HarfBuzz to display characters, not GDI. That's unrelated. HarfBuzz is used for shaping complex scripts, but the basic low-level font APIs are still the same GDI APIs we used before. The Uniscribe backend also used/uses them. > Anyway, Cascadia's changelog says: " We've changed the typographic metrics a bit to align with best > practices and move away from using legacy Windows GDI values." > > And has a link to https://github.com/microsoft/cascadia-code/pull/261 that says: "This change modifies the > font vertical metrics for better consistency cross-platform. Block drawing characters adjusted to account for > new metrics." And they are still discussing that, since other editors are affected. I suggest to wait until they decide what to do with this. In any case, as I said: we don't have any code that accesses font metrics using APIs different from GDI. To change that, someone who knows this stuff will have to write the code, or at least tell us what APIs to use instead. Volunteers and suggestions are welcome.