From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20628: 25.0.50; Incorrect line height for some fonts Date: Sat, 23 May 2015 09:52:30 +0300 Message-ID: <83lhgf3hw1.fsf@gnu.org> References: <83bnhc4gx4.fsf@gnu.org> <555F7BFD.2090105@live.com> <83617k4e5g.fsf@gnu.org> <20150522.234959.238191883.wl@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1432364007 10591 80.91.229.3 (23 May 2015 06:53:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 May 2015 06:53:27 +0000 (UTC) Cc: clement.pitclaudel@live.com, ohwoeowho@gmail.com, 20628@debbugs.gnu.org To: Werner LEMBERG Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 23 08:53:16 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 1Yw3J5-0006nR-Ux for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 May 2015 08:53:16 +0200 Original-Received: from localhost ([::1]:36967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw3J5-0001r9-5W for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 May 2015 02:53:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw3Iy-0001qq-Fy for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 02:53:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yw3It-0000uC-HO for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 02:53:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yw3It-0000u6-EV for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 02:53:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yw3Is-0007ns-OK for bug-gnu-emacs@gnu.org; Sat, 23 May 2015 02:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 May 2015 06:53:02 +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.143236396629961 (code B ref 20628); Sat, 23 May 2015 06:53:02 +0000 Original-Received: (at 20628) by debbugs.gnu.org; 23 May 2015 06:52:46 +0000 Original-Received: from localhost ([127.0.0.1]:53393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yw3IY-0007n0-Dw for submit@debbugs.gnu.org; Sat, 23 May 2015 02:52:46 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:62121) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yw3IT-0007mZ-Ea for 20628@debbugs.gnu.org; Sat, 23 May 2015 02:52:41 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NOS00C00IO1GK00@a-mtaout20.012.net.il> for 20628@debbugs.gnu.org; Sat, 23 May 2015 09:52:30 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOS00CGSJ3H7150@a-mtaout20.012.net.il>; Sat, 23 May 2015 09:52:30 +0300 (IDT) In-reply-to: <20150522.234959.238191883.wl@gnu.org> X-012-Sender: halo1@inter.net.il 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:103078 Archived-At: > Date: Fri, 22 May 2015 23:49:59 +0200 (CEST) > Cc: clement.pitclaudel@live.com, ohwoeowho@gmail.com, 20628@debbugs.gnu.org > From: Werner LEMBERG > > 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. Could you perhaps look at the Emacs sources and suggest how to change the *_open functions in the *font.c back-ends, to do what you suggest above? Or at least tell how to get "the current size of the font" from the back-ends we use, which are Freetype, Fontconfig, and XLib's XLoadQueryFont? The relevant source files are xfont.c, ftfont.c, and xftfont.c. Also, how to know from the glyph metrics, in their Emacs incarnation, that an individual glyph needs an increase of the vertical space? Thanks.