From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: An issue with GDI? [Windows] Date: Thu, 14 May 2020 16:53:58 +0200 Message-ID: References: <2093331550.612340.1589464533075@mail1.libero.it> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f49a4005a59cdf06" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="86031"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 14 17:11:08 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 1jZFVr-000MGU-RV for ged-emacs-devel@m.gmane-mx.org; Thu, 14 May 2020 17:11:07 +0200 Original-Received: from localhost ([::1]:43270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZFVq-0003se-TU for ged-emacs-devel@m.gmane-mx.org; Thu, 14 May 2020 11:11:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZFFu-0007Jv-4r for emacs-devel@gnu.org; Thu, 14 May 2020 10:54:38 -0400 Original-Received: from mail-qv1-xf2e.google.com ([2607:f8b0:4864:20::f2e]:37814) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZFFr-0004cm-Jk for emacs-devel@gnu.org; Thu, 14 May 2020 10:54:37 -0400 Original-Received: by mail-qv1-xf2e.google.com with SMTP id z5so1804153qvw.4 for ; Thu, 14 May 2020 07:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZS1s0LeEIudcNDeHIkxkrlRa46FbNcopM5RdqOfcYMM=; b=WnXHfksNJ6BGGA44zJBJvYYkBr0CLfL69HYKOAlHuJgkL0ZGFvD8FHvzLctQ2vvuz5 yENPE8oqcfGVko56nd4db7TXoZm8zZrKojbKXcZXWuOxSLKb3/ydpvltMmtK/OUfD/0L 0n9rQEpJt/B05aur/TyAXrTtB/VleL8RQMycJw5Bi4qJJuFjHXTkve8vteQUN4p4PCnm Ids18ePWuH/sJuT5TWxzup+kgM2neMnhaNpwYC2arydY7MsAzc+dffme5SHJjwAkgDAM C9m22l9K73pqle3Ju2iIq3eWqETAkjCDfyn1tB5VOhgmcpymKWyENfmv1V4ZCK6IFKHm KsgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZS1s0LeEIudcNDeHIkxkrlRa46FbNcopM5RdqOfcYMM=; b=hDIuqrgvbALjYuhrlD8JiWOG7uCsg2l0q2hm5sIyXXwfjrjVpJqHJQQDcHr78WrWsp zFVT1VeRnpY+a7UZPIJdtwacV0snO92e3ac4F9Ae1UFBgrQO3vDPeeqN8Atd4oMBB+Kp h3+8Yj0YAEWHCbLytl/3Z2Pz7LfZT2F0yU8AjtyOwQPJLvL1PpH9KmHiaPKS3NTIEG+D 7aL8nU+zFUOTKk/KnoCt3HFQeS+ODA1WXxfi+zd2VdUuPfTpTzsCshAf7NwbGuRTTPMQ gOcp1Vv+4xFqkX/HWDTAgFj8fplg0NSE/O7oHJvXZwWA8JMV379DNkzOyLcp8C9fuVf0 ntFw== X-Gm-Message-State: AOAM533yffbFo4F/litYmvFPv6T0681jnPMycptrUXUwKh8xeCqVovAf ip2EMbYsh6QkbVX7FWJ9A/hCCIjFDgwIkaYxNvs= X-Google-Smtp-Source: ABdhPJxJzKph4Y/qIq2Y9sZf75b/5efqchfW94lPz16W0bgdWNYHvUd3cSnZeJRn8c+9lTC1IgLmobTFusY7QpqHLcU= X-Received: by 2002:a05:6214:40e:: with SMTP id z14mr2644422qvx.150.1589468074382; Thu, 14 May 2020 07:54:34 -0700 (PDT) In-Reply-To: <2093331550.612340.1589464533075@mail1.libero.it> Received-SPF: pass client-ip=2607:f8b0:4864:20::f2e; envelope-from=lekktu@gmail.com; helo=mail-qv1-xf2e.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: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, HTML_MESSAGE=0.001, HTML_OBFUSCATE_05_10=0.26, 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:250251 Archived-At: --000000000000f49a4005a59cdf06 Content-Type: text/plain; charset="UTF-8" On Thu, May 14, 2020 at 3:58 PM Angelo Graziosi wrote: > Now a few day ago there was an update of the Cascadia Code font. With this new version I have only 37 useful line of text for writing because the gap between lines increased. I had the very same issue. > Someone there flagged that the issue could be related to the fact that Emacs and some other app (VIM) use the GDI which is too old. See the discussion following the above link. > > Would it help to rebuild Emacs without GDI? The build I am using was done e few week ago with master 20200502_225014. By default, master on Windows is using HarfBuzz to display characters, not GDI. This is the first character of my .emacs (a semicolon): position: 1 of 42188 (0%), column: 0 character: ; (displayed as ;) (codepoint 59, #o73, #x3b) charset: ascii (ASCII (ISO646 IRV)) code point in charset: 0x3B script: latin syntax: < which means: comment category: .:Base, a:ASCII, l:Latin, r:Roman to input: type "C-x 8 RET 3b" or "C-x 8 RET SEMICOLON" buffer code: #x3B file code: #x3B (encoded by coding system utf-8-unix) display: by this font (glyph code) harfbuzz:-outline-Cascadia Code PL-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x29B) 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." --000000000000f49a4005a59cdf06 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, May 14, 2020 at 3:58 PM Angelo Graziosi <angelo.g0@libero.it> wrote:
=
> Now a few day ago there was an update of the Cascadia Code font. W= ith this new version I have only 37 useful line of text for writing because= the gap between lines increased.

I had the very same issue.=C2=A0
> Someone there flagged that the issue could be related to the fac= t that Emacs and some other app (VIM) use the GDI which is too old. See the= discussion following the above link.
>
> Would it help to rebu= ild Emacs without GDI? The build I am using was done e few week ago with ma= ster 20200502_225014.

By default, master on Windows is using HarfBuz= z to display characters, not GDI. This is the first character of my .emacs = (a semicolon):

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0posit= ion: 1 of 42188 (0%), column: 0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 character: ; (displayed as ;) (codepoint 59, #o73, #x3b)
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 charset: ascii (ASCII (ISO646 IRV))<= br>code point in charset: 0x3B
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0script: latin
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0syntax: < which means: comment
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0category: .:Base, a:ASCII, l:Latin, r:Roman
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0to input: type "C-x 8 RET= 3b" or "C-x 8 RET SEMICOLON"
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 buffer code: #x3B
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 file= code: #x3B (encoded by coding system utf-8-unix)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 display: by this font (glyph code)
=C2=A0 = =C2=A0 harfbuzz:-outline-Cascadia Code PL-normal-normal-normal-mono-13-*-*-= *-c-*-iso8859-1 (#x29B)

Anyway, Cascadia's changelog says:=C2=A0= =C2=A0" 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=C2=A0 https://git= hub.com/microsoft/cascadia-code/pull/261=C2=A0 that says: "This ch= ange modifies the font vertical metrics for better consistency cross-platfo= rm. Block drawing characters adjusted to account for new metrics."
=
--000000000000f49a4005a59cdf06--