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: Thu, 06 May 2021 19:29:19 +0300 Message-ID: <831rajesgw.fsf@gnu.org> References: <871ramlbpy.fsf@telefonica.net> <87fsz1zmhv.fsf@gmail.com> <87sg30usa2.fsf@gmail.com> <83mtt8dvft.fsf@gnu.org> <87a6p8w0b7.fsf@gmail.com> <83h7jgdqhs.fsf@gnu.org> <531453ddd626d93fbb46@heytings.org> <83czu3evks.fsf@gnu.org> <531453ddd6aad581d339@heytings.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30962"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jporterbugs@gmail.com, arstoffel@gmail.com, stefankangas@gmail.com, emacs-devel@gnu.org To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 06 18:38:48 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 1leh1S-0007sc-N7 for ged-emacs-devel@m.gmane-mx.org; Thu, 06 May 2021 18:38:46 +0200 Original-Received: from localhost ([::1]:53134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leh1R-0002pq-Mj for ged-emacs-devel@m.gmane-mx.org; Thu, 06 May 2021 12:38:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39366) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1legsX-0003d3-0y for emacs-devel@gnu.org; Thu, 06 May 2021 12:29:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47396) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1legsV-0005nL-W5; Thu, 06 May 2021 12:29:32 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2172 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1legsV-00017q-Ix; Thu, 06 May 2021 12:29:31 -0400 In-Reply-To: <531453ddd6aad581d339@heytings.org> (message from Gregory Heytings on Thu, 06 May 2021 16:21:20 +0000) 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:268977 Archived-At: > Date: Thu, 06 May 2021 16:21:20 +0000 > From: Gregory Heytings > cc: jporterbugs@gmail.com, arstoffel@gmail.com, stefankangas@gmail.com, > emacs-devel@gnu.org > > >> \baselineskip=0pt means that the height and depth of a text line is > >> equal to the maximal height and depth of the characters in that line. > >> See the attached two screenshots that demonstrate the difference. > > > > That's what Emacs does as well, when line-spacing is nil, but Augusto > > says they are different. > > Unless I'm missing something, that's not what Emacs does, no. I attach > two screenshots of the exact same text with the exact same font, one with > Emacs (setq line-spacing nil) and the other with TeX (\baselineskip=0pt). > The effect is very different. Then your description of what TeX does is probably incomplete or inaccurate. on the Emacs side, I can point you to the code which implements line-spacing, which clearly shows that if line-spacing is nil, the default, we add NOTHING (a.k.a. "zero") to the height of the line, leaving it at its computed value of the sum of the maximum ascent and maximum descent of the glyphs in that line.