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:18:29 +0300 Message-ID: <83r3q84uoq.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 1432300765 16464 80.91.229.3 (22 May 2015 13:19:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2015 13:19:25 +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:19:12 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 1Yvmr2-0000Rl-Bp for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 15:19:12 +0200 Original-Received: from localhost ([::1]:33985 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvmr1-0007lH-Fn for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 09:19:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvmqy-0007l0-Gm for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 09:19:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yvmqs-0006Td-BH for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 09:19:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvmqs-0006TZ-8L for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 09:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yvmqr-0007ZP-V6 for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 09:19: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:19: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.143230071829062 (code B ref 20628); Fri, 22 May 2015 13:19:01 +0000 Original-Received: (at 20628) by debbugs.gnu.org; 22 May 2015 13:18:38 +0000 Original-Received: from localhost ([127.0.0.1]:52653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YvmqU-0007Yf-0v for submit@debbugs.gnu.org; Fri, 22 May 2015 09:18:38 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:56698) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YvmqS-0007YT-3m for 20628@debbugs.gnu.org; Fri, 22 May 2015 09:18:36 -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:17:37 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOR00JD769DI340@mtaout28.012.net.il>; Fri, 22 May 2015 16:17:37 +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:103022 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. The code mentioned above is device independent, so GTK doesn't come into play here. Thanks in advance for any solutions you might find and/or suggest.