From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal] Date: Wed, 05 May 2021 05:28:08 +0300 Message-ID: <8335v152yv.fsf@gnu.org> References: <83lf8u4gm0.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23466"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 05 04:28:52 2021 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 1le7HP-0005ya-P6 for ged-emacs-devel@m.gmane-mx.org; Wed, 05 May 2021 04:28:51 +0200 Original-Received: from localhost ([::1]:41446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1le7HO-0004A0-Sa for ged-emacs-devel@m.gmane-mx.org; Tue, 04 May 2021 22:28:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1le7Gu-0003jf-MI for emacs-devel@gnu.org; Tue, 04 May 2021 22:28:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36069) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1le7Gu-0001HL-AR; Tue, 04 May 2021 22:28:20 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3196 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1le7Gt-00017W-9T; Tue, 04 May 2021 22:28:19 -0400 In-Reply-To: (message from Stefan Kangas on Tue, 4 May 2021 16:29:03 -0500) 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:268893 Archived-At: > From: Stefan Kangas > Date: Tue, 4 May 2021 16:29:03 -0500 > Cc: emacs-devel@gnu.org > > Eli Zaretskii writes: > > >> Emacs by default uses a leading of the font size + a few pixels (the > >> `line-spacing' variable is 0). > > > > I don't understand this (or disagree): AFAIU, by default line-spacing > > is strictly zero, and we don't add anything to the font size. If you > > see something else in the code, can you point me to the code which I'm > > missing, and which implements that default line-spacing? > > This is not based on any reading of the code, but merely a casual > observation based on what I see when I look at my screen: there are a > couple of pixels between characters (glyphs) on different rows. If you > say that there is nothing extra added in addition to the font size, then > that is how it is. We add nothing by default. The height of each screen line is just the maximum value of the sum of the glyph ascents and glyph descents on that line. If you move the cursor between two screen lines, you should see that the cursor on line N ends exactly where the cursor on line N+1 begins. Since the cursor's height is exactly the height of the screen line, that confirms what I see in the code.