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 18:39:16 +0300 Message-ID: <83h9r44o63.fsf@gnu.org> References: <555E9C2E.8040008@live.com> <83617l5aox.fsf@gnu.org> <87pp5s2a77.fsf@gmail.com> <83wq004x2w.fsf@gnu.org> <83twv44vd3.fsf@gnu.org> <87egm87ny6.fsf@gmail.com> <83oalc4syu.fsf@gnu.org> <87617k7m5u.fsf@gmail.com> <83mw0w4seb.fsf@gnu.org> <87zj4w66ds.fsf@gmail.com> <83lhgg4qhf.fsf@gnu.org> <87iobk64e6.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1432309318 1859 80.91.229.3 (22 May 2015 15:41:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2015 15:41:58 +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 17:41:47 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 1Yvp4k-0007LW-NQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 17:41:30 +0200 Original-Received: from localhost ([::1]:34701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvp4k-0003o4-8t for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 11:41:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvp3S-0001uq-55 for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 11:40:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yvp3M-0003wc-1s for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 11:40:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvp3L-0003wO-W3 for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 11:40:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yvp3L-0002kV-8D for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 11:40:03 -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 15:40:03 +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.143230916910515 (code B ref 20628); Fri, 22 May 2015 15:40:03 +0000 Original-Received: (at 20628) by debbugs.gnu.org; 22 May 2015 15:39:29 +0000 Original-Received: from localhost ([127.0.0.1]:53077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yvp2m-0002jX-9U for submit@debbugs.gnu.org; Fri, 22 May 2015 11:39:28 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:62935) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yvp2k-0002jI-8o for 20628@debbugs.gnu.org; Fri, 22 May 2015 11:39:27 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NOR00700CP54Y00@a-mtaout20.012.net.il> for 20628@debbugs.gnu.org; Fri, 22 May 2015 18:39:20 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOR007G0CTG5300@a-mtaout20.012.net.il>; Fri, 22 May 2015 18:39:17 +0300 (IDT) In-reply-to: <87iobk64e6.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:103038 Archived-At: > From: Oleh Krehel > Cc: clement.pitclaudel@live.com, 20628@debbugs.gnu.org > Date: Fri, 22 May 2015 17:03:29 +0200 > > ;; equivalent: > (format "%c" #x01d779) > (format "%c" 120697) > > ;; what gets passed to x_produce_glyphs: > (format "%c" 120755) > > So now, if I put this check at the end of x_produce_glyphs: > > if (it->char_to_display == 120755) > { > it->max_ascent = 0; > it->max_descent = 0; > } > > The problem is solved for this one char. So now the question is how > 120697 got translated into 120755? I can't reproduce this: I only see 120697. I'd suggest to put a by-location watchpoint on it->char_to_display, conditioned on the value being greater than 120000, and see which code sets it to 120755. > Also, for some reason I can't evaluate this in gdb: > > p get_char_glyph_code (it->char_to_display, font, &char2b) > > It says that get_char_glyph_code isn't defined. Is your build optimized, per chance? It works for me, FWIW. > In any case, for this character it returns FONT_INVALID_CODE. Not sure how this is relevant; and it should return either 'true' or 'false'. Anyway, on my system, this character enlarges the it->max_ascent value by 1 pixel, and leaves the it->max_descent value unchanged. The font used to display it is Code2001, and the default font is Courier New.