From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.bugs Subject: bug#20628: 25.0.50; Incorrect line height for some fonts Date: Fri, 22 May 2015 16:20:31 +0200 Message-ID: <87zj4w66ds.fsf@gmail.com> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1432304845 22032 80.91.229.3 (22 May 2015 14:27:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2015 14:27:25 +0000 (UTC) Cc: clement.pitclaudel@live.com, 20628@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 22 16:27:13 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 1Yvnuq-0004BX-Pf for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 16:27:13 +0200 Original-Received: from localhost ([::1]:34230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvnuq-0006Lz-0Z for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 10:27:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvnul-0006Ls-KD for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 10:27:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yvnug-0002el-96 for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 10:27:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvnug-0002e3-6s for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 10:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yvnuf-0000tk-T1 for bug-gnu-emacs@gnu.org; Fri, 22 May 2015 10:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Oleh Krehel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 May 2015 14:27: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.14323048153439 (code B ref 20628); Fri, 22 May 2015 14:27:01 +0000 Original-Received: (at 20628) by debbugs.gnu.org; 22 May 2015 14:26:55 +0000 Original-Received: from localhost ([127.0.0.1]:53037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YvnuY-0000tP-MX for submit@debbugs.gnu.org; Fri, 22 May 2015 10:26:55 -0400 Original-Received: from mail-wi0-f173.google.com ([209.85.212.173]:37076) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YvnuW-0000tB-8l for 20628@debbugs.gnu.org; Fri, 22 May 2015 10:26:52 -0400 Original-Received: by wibt6 with SMTP id t6so49142698wib.0 for <20628@debbugs.gnu.org>; Fri, 22 May 2015 07:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=KvCQpspm5k7Pwgi3Knye99kSYUipHw1bJECHq8ZI5YA=; b=Pc7kdNjwm67HQyeNrqwAoRD4icXz1kM09Bm+H+5SM1CbDX9Gu+e14iwvdmr1sYxPoB I749pY0cJpDE5pkirk961B9XCkcgPNiFp/kiTJkPSmsEtjLqAJhE+1GhmCG2mbXJNH5+ wrLyWUDINx38cQ8TrKxyjE7W+sdWCis5590KGFbE7k9z1oduMOLrxh/OE+Jwg1xd73wX NXtiBByd8gObY044LBlATb2OVcDFJmNEKnmHOnU41nfAWirvczIJAMiWy+ttDTRL2xcd bKkW9Do3C7C1hJynoHL1zKIEqgqoNxYYj9B/qx+Enb5RKPtzIibLY7ShISeeHXhUPtCs 60wA== X-Received: by 10.194.249.201 with SMTP id yw9mr16030338wjc.5.1432304806677; Fri, 22 May 2015 07:26:46 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by mx.google.com with ESMTPSA id g11sm3393355wjr.25.2015.05.22.07.26.45 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 22 May 2015 07:26:45 -0700 (PDT) In-Reply-To: <83mw0w4seb.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 22 May 2015 17:07:56 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) 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:103029 Archived-At: Eli Zaretskii writes: > Like this: > > it->max_ascent = max (it->max_ascent, it->ascent); > it->max_descent = max (it->max_descent, it->descent); > > IOW, it's the max value of ascent and descent of all the characters on > that screen line. OK, I got this far: p FACE_FROM_ID(it->f,it->face_id)->font->ascent $18 = 15 (gdb) p FACE_FROM_ID(it->f,it->face_id)->font->descent $19 = 4 15 and 4 are the eventual (wrong) values of it->max_ascent and it->max_descent. But I don't know how and where the font structure is initialized and how the current glyph actually is factored here: I just see a reference to a frame and a face, no reference to the current char.