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: Fri, 22 May 2015 16:13:59 +0300 Message-ID: <83siao4uw8.fsf@gnu.org> References: <555E9C2E.8040008@live.com> <83617l5aox.fsf@gnu.org> <87pp5s2a77.fsf@gmail.com> <83wq004x2w.fsf@gnu.org> <87k2w07p6b.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1432300646 14663 80.91.229.3 (22 May 2015 13:17:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2015 13:17:26 +0000 (UTC) Cc: clement.pitclaudel@live.com, 20628@debbugs.gnu.org To: Oleh Krehel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 22 15:17: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 1Yvmp7-0007sz-AO for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 15:17:13 +0200 Original-Received: from localhost ([::1]:33971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvmp6-0007KG-Mp for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 09:17:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvmp3-0007K8-4a for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 09:17:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yvmow-0005va-O4 for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 09:17:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvmow-0005uj-Kz for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 09:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yvmow-0007W8-1n for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 09:17: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: Fri, 22 May 2015 13:17: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.143230061428874 (code B ref 20628); Fri, 22 May 2015 13:17:01 +0000 Original-Received: (at 20628) by debbugs.gnu.org; 22 May 2015 13:16:54 +0000 Original-Received: from localhost ([127.0.0.1]:52649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yvmon-0007Ve-7j for submit@debbugs.gnu.org; Fri, 22 May 2015 09:16:53 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:37238) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yvmok-0007VP-CA for 20628@debbugs.gnu.org; Fri, 22 May 2015 09:16:51 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NOR00L005I9K100@mtaout28.012.net.il> for 20628@debbugs.gnu.org; Fri, 22 May 2015 16:13:08 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOR00JND61VI330@mtaout28.012.net.il>; Fri, 22 May 2015 16:13:08 +0300 (IDT) In-reply-to: <87k2w07p6b.fsf@gmail.com> 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:103021 Archived-At: > From: Oleh Krehel > Cc: clement.pitclaudel@live.com, 20628@debbugs.gnu.org > Date: Fri, 22 May 2015 14:49:16 +0200 > > The test file with contents: > asdf 𝞳 > > is displayed fine with "emacs -nw" when inside a GNOME Terminal. In "emacs -nw", Emacs doesn't perform layout, it just writes the characters using stdio functions. It's the terminal emulator that performs layout. > Other applications like Firefox, Gedit, and Chromium also display it > fine. Knowing that doesn't help in fixing Emacs behavior. > Could you point me to a code position in Emacs where the line pixel > height is determined. It's in xdisp.c:x_produce_glyphs. Emacs updates the line's ascent and descent as it processes each character for display, based on the data it gets from the font used by the face of that character. Later in display_line, the height of each screen line is determined: row->ascent = max (row->ascent, it->max_ascent); row->height = max (row->height, it->max_ascent + it->max_descent); row->phys_ascent = max (row->phys_ascent, it->max_phys_ascent); row->phys_height = max (row->phys_height, it->max_phys_ascent + it->max_phys_descent); row->extra_line_spacing = max (row->extra_line_spacing, it->max_extra_line_spacing); > I'll try to play around with it, maybe I can fix it at least for > GTK. This code is device independent, so GTK doesn't come into play here. Thanks in advance for any solutions you might find and/or suggest.