From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniele Nicolodi Newsgroups: gmane.emacs.devel Subject: Re: Increase default `line-spacing' to 0.05, 0.10 or 0.15 [proposal] Date: Sat, 8 May 2021 09:51:12 +0200 Message-ID: <72d55429-37ee-cb16-c939-2b274a936136@grinta.net> References: <83mtt7chrt.fsf@gnu.org> <83zgx5agt2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26416"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 08 09:52:43 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 1lfHlS-0006mK-Iv for ged-emacs-devel@m.gmane-mx.org; Sat, 08 May 2021 09:52:42 +0200 Original-Received: from localhost ([::1]:59040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfHlR-0002aK-L3 for ged-emacs-devel@m.gmane-mx.org; Sat, 08 May 2021 03:52:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfHk8-000164-RV for emacs-devel@gnu.org; Sat, 08 May 2021 03:51:20 -0400 Original-Received: from grinta.net ([109.74.203.128]:43836) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfHk6-0007El-LU for emacs-devel@gnu.org; Sat, 08 May 2021 03:51:20 -0400 Original-Received: from black.local (p4fe717e2.dip0.t-ipconnect.de [79.231.23.226]) (Authenticated sender: daniele) by grinta.net (Postfix) with ESMTPSA id 14A58E07E6 for ; Sat, 8 May 2021 07:51:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=grinta.net; s=2020; t=1620460274; bh=7zh4umIj4FA3U8UN9v2jb5gnCbCCwahSi+s4HuoadC4=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Say81yDq+JKE+zYuVvaXiokOEeRyJVcQyp2nzD9Bk7norRkY6DN2PihE7bhQqyegl yPQtxZ/r5SgMS49Ewbociackea6ivxWvLwasSEim7JH73woFiXHPysuEXwR4f86qPg LyZVcWl33aiSTm8Nx6VDEEibMUkxfUWsSuiyI37eoDyEng5TJlPz6C1BQ1gb+wXpTc VgU/1flK9ILYYtaX4d69ax9mU8BpXodUGTcpeF0VCjYRbmAAdyam+n1VrBGsvkvu9p buwUn4EZwhcf9qTufRYO30ms2LCTn5vPgrz6mxvsMqheC1m/JcC1FcegkGhUrMnt80 vnCDVsdGOAwwg== In-Reply-To: <83zgx5agt2.fsf@gnu.org> Content-Language: en-US Received-SPF: pass client-ip=109.74.203.128; envelope-from=daniele@grinta.net; helo=grinta.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, NICE_REPLY_A=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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:269027 Archived-At: On 08/05/2021 08:19, Eli Zaretskii wrote: > On the implementation side, I'm not sure I understand how do you > intend to implement these values: 110% of what? Line spacing is > eventually a pixel value; you can, of course, compute it in percents > of the font size, but then the nominal spacing will not have the 100% > or 1.0 value, right? So how do you intend to convert the value in the > menu into the actual line-spacing value? The documentation for the line-spacing variable says: Documentation: Additional space to put between lines when displaying a buffer. The space is measured in pixels, and put below lines on graphic displays, see ‘display-graphic-p’. If value is a floating point number, it specifies the spacing relative to the default frame line height. A value of nil means add no extra space. I think the values in the menu would simply be divided by 100. Cheers, Dan