From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Redisplay issue Date: Fri, 04 Dec 2015 13:12:50 +0200 Message-ID: <83r3j2h3gt.fsf@gnu.org> References: <83two4olqj.fsf@gnu.org> <83h9k3mphx.fsf@gnu.org> <834mg2kvj7.fsf@gnu.org> <83d1upj6ml.fsf@gnu.org> <83si3kht2b.fsf@gnu.org> <56608701.9050802@gmx.at> <566149F0.1090408@gmx.at> <56615343.2090901@gmx.at> <5661554A.9050209@gmx.at> <5661574A.60900@gmx.at> <83y4dah7f8.fsf@gnu.org> <56616945.6030407@[84.94.185.246]> <83twnyh3zo.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449227609 5603 80.91.229.3 (4 Dec 2015 11:13:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Dec 2015 11:13:29 +0000 (UTC) Cc: yuan.mei.list@gmail.com, emacs-devel@gnu.org To: rudalics@gmx.at Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 04 12:13:21 2015 Return-path: Envelope-to: ged-emacs-devel@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 1a4oIg-0006G5-NO for ged-emacs-devel@m.gmane.org; Fri, 04 Dec 2015 12:13:18 +0100 Original-Received: from localhost ([::1]:40029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4oIg-0001yu-8P for ged-emacs-devel@m.gmane.org; Fri, 04 Dec 2015 06:13:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4oIc-0001yd-GJ for emacs-devel@gnu.org; Fri, 04 Dec 2015 06:13:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4oIY-0001ZH-Gq for emacs-devel@gnu.org; Fri, 04 Dec 2015 06:13:14 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:49276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4oIY-0001YX-96 for emacs-devel@gnu.org; Fri, 04 Dec 2015 06:13:10 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NYT00C00YRA7J00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 04 Dec 2015 13:13:07 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYT00CX6Z5R2U40@a-mtaout20.012.net.il>; Fri, 04 Dec 2015 13:13:04 +0200 (IST) In-reply-to: <83twnyh3zo.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195880 Archived-At: > Date: Fri, 04 Dec 2015 13:01:31 +0200 > Sun-Java-System-SMTP-Warning: Lines longer than SMTP allows found and > truncated. > From: Eli Zaretskii > Cc: yuan.mei.list@gmail.com, emacs-devel@gnu.org > > > Date: Fri, 04 Dec 2015 11:21:57 +0100 > > From: martin rudalics > > CC: yuan.mei.list@gmail.com, emacs-devel@gnu.org > > > > >> So it's the Cairo font backend. 59 text lines plus one menu bar line > > >> give the 60 pixels difference. > > > > > > I don't understand how can it do that with the same size of the same > > > font. Some bug in ftcrfont.c, perhaps? > > > > Do what? > > Compute a different frame-char-height for the same font and font size. In case this is not clear: xterm.c computes FRAME_LINE_HEIGHT as follows: get_font_ascent_descent (font, &font_ascent, &font_descent); FRAME_LINE_HEIGHT (f) = font_ascent + font_descent; So the result comes from 2 values determined only by the frame's default font. These values are returned by the font back-end that accesses the font, so only the font back-end could have affected them for the same font.