From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Printing Date: Wed, 08 Apr 2009 10:33:59 +0900 Message-ID: References: <5f0660120903280331y780c80b7i57a8115dc4b029eb@mail.gmail.com> <49CE3A84.9070705@swipnet.se> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1239154400 28490 80.91.229.12 (8 Apr 2009 01:33:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Apr 2009 01:33:20 +0000 (UTC) Cc: emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 08 03:34:38 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LrMgW-0005kf-N2 for ged-emacs-devel@m.gmane.org; Wed, 08 Apr 2009 03:34:37 +0200 Original-Received: from localhost ([127.0.0.1]:50313 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrMf8-0005bL-H8 for ged-emacs-devel@m.gmane.org; Tue, 07 Apr 2009 21:33:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrMf3-0005Zd-OM for emacs-devel@gnu.org; Tue, 07 Apr 2009 21:33:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrMez-0005WX-BS for emacs-devel@gnu.org; Tue, 07 Apr 2009 21:33:05 -0400 Original-Received: from [199.232.76.173] (port=34194 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrMez-0005WP-2x for emacs-devel@gnu.org; Tue, 07 Apr 2009 21:33:01 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:43841) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LrMey-0006p0-GH for emacs-devel@gnu.org; Tue, 07 Apr 2009 21:33:00 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n381Ww0S010968; Wed, 8 Apr 2009 10:32:58 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n381Wwg8005337; Wed, 8 Apr 2009 10:32:58 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id n381WvZF024394; Wed, 8 Apr 2009 10:32:57 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LrMfv-0002jV-U5; Wed, 08 Apr 2009 10:33:59 +0900 In-reply-to: (message from YAMAMOTO Mitsuharu on Tue, 07 Apr 2009 18:46:01 +0900) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110134 Archived-At: In article , YAMAMOTO Mitsuharu writes: > Handa-san, could you check if the following change to ftfont.c is > correct? It is also included in the revised patch below. Thank you. Those changes are correct. I've just committed them. > *************** ftfont_text_extents (font, code, nglyphs > *** 1255,1261 **** > metrics->lbearing = m->horiBearingX >> 6; > metrics->rbearing = (m->horiBearingX + m->width) >> 6; > metrics->ascent = m->horiBearingY >> 6; > ! metrics->descent = (m->horiBearingY + m->height) >> 6; > } > first = 0; > } > --- 1255,1261 ---- > metrics->lbearing = m->horiBearingX >> 6; > metrics->rbearing = (m->horiBearingX + m->width) >> 6; > metrics->ascent = m->horiBearingY >> 6; > ! metrics->descent = (m->height - m->horiBearingY) >> 6; > } > first = 0; > } > *************** ftfont_text_extents (font, code, nglyphs > *** 1269,1276 **** > = width + ((m->horiBearingX + m->width) >> 6); > if (metrics->ascent < (m->horiBearingY >> 6)) > metrics->ascent = m->horiBearingY >> 6; > ! if (metrics->descent > ((m->horiBearingY + m->height) >> 6)) > ! metrics->descent = (m->horiBearingY + m->height) >> 6; > } > width += m->horiAdvance >> 6; > } > --- 1269,1276 ---- > = width + ((m->horiBearingX + m->width) >> 6); > if (metrics->ascent < (m->horiBearingY >> 6)) > metrics->ascent = m->horiBearingY >> 6; > ! if (metrics->descent < ((m->height - m->horiBearingY) >> 6)) > ! metrics->descent = (m->height - m->horiBearingY) >> 6; > } > width += m->horiAdvance >> 6; > } --- Kenichi Handa handa@m17n.org