From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Werner LEMBERG Newsgroups: gmane.emacs.bugs Subject: bug#20628: 25.0.50; Incorrect line height for some fonts Date: Sat, 23 May 2015 11:57:31 +0200 (CEST) Message-ID: <20150523.115731.197331942.wl@gnu.org> References: <20150522.234959.238191883.wl@gnu.org> <83lhgf3hw1.fsf@gnu.org> <20150523.115022.503695176.wl@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1432375108 5582 80.91.229.3 (23 May 2015 09:58:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 May 2015 09:58:28 +0000 (UTC) Cc: clement.pitclaudel@live.com, ohwoeowho@gmail.com, 20628@debbugs.gnu.org To: eliz@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 23 11:58:15 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yw6C5-0004a5-Ut for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 May 2015 11:58:14 +0200 Original-Received: from localhost ([::1]:37221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw6C5-0003Lw-80 for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 May 2015 05:58:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw6By-0003Lo-Qv for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 05:58:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yw6Bu-0003S0-FJ for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 05:58:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw6Bu-0003Ru-CB for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 05:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yw6Bt-0003fy-RM for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 05:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Werner LEMBERG Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 May 2015 09:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20628 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20628-submit@debbugs.gnu.org id=B20628.143237507614119 (code B ref 20628); Sat, 23 May 2015 09:58:01 +0000 Original-Received: (at 20628) by debbugs.gnu.org; 23 May 2015 09:57:56 +0000 Original-Received: from localhost ([127.0.0.1]:53439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yw6Bj-0003fZ-8B for submit@debbugs.gnu.org; Sat, 23 May 2015 05:57:55 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:63105) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yw6Bd-0003fJ-CG for 20628@debbugs.gnu.org; Sat, 23 May 2015 05:57:50 -0400 Original-Received: from gnu.org ([178.115.130.41]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LfYqz-1ZTYGO22a9-00p5JP; Sat, 23 May 2015 11:57:37 +0200 In-Reply-To: <20150523.115022.503695176.wl@gnu.org> X-Mailer: Mew version 6.5 on Emacs 25.0.50.1 / Mule 6.0 (HANACHIRUSATO) X-Provags-ID: V03:K0:n9XuYRDnbr4nUxeotIbN222OmdYZgZBPEY8yujrRMbFqWISSoQ0 dkrTXKUkli+FTr31fsWoCgA+vPxapiMzjoLiWmj3oLtHS5iTiy+1Ftim4oTuR7htqw7ndpi kNFdyLVksq9iCQM/EGsC7EyfSxvzJGPg/Ke9TeA+EQf8H3Fv0+wMhPmgGbu4+2BQdEXSY8E bT9nospqxm+ctwUk+8gEA== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103088 Archived-At: > IMHO the bes solution is to completely ignore font-wide ascender and > descender values. Instead, use the TeX approach: set the line gap > to the current size of the font, multiplied by a factor of 1.2 (and > make this configurable on a font-by-font basis in case it isn't > already), and increase the linegap if individual glyphs need it. I have to correct myself: The linegap should apply to all fonts, of course. To make various fonts optically fit a per-font scaling factor should be used (what Emacs already provides, I think). > As a corollary, the only question is how to compute a proper default > linegap value without relying on quirks caused by incompatible font > formats and font metric data. And for this default linegap value I suggest the abovementioned value: linegap_default = 1.2 * font_size Werner