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: Tue, 07 Apr 2009 10:01:46 +0900 Message-ID: References: <5f0660120903280331y780c80b7i57a8115dc4b029eb@mail.gmail.com> <49CE3A84.9070705@swipnet.se> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1239066071 27244 80.91.229.12 (7 Apr 2009 01:01:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Apr 2009 01:01:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 07 03:02:30 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 1Lqzht-0007P4-36 for ged-emacs-devel@m.gmane.org; Tue, 07 Apr 2009 03:02:29 +0200 Original-Received: from localhost ([127.0.0.1]:51597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqzgU-00039n-Km for ged-emacs-devel@m.gmane.org; Mon, 06 Apr 2009 21:01:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqzgN-00038y-Q8 for emacs-devel@gnu.org; Mon, 06 Apr 2009 21:00:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LqzgJ-00037E-CN for emacs-devel@gnu.org; Mon, 06 Apr 2009 21:00:55 -0400 Original-Received: from [199.232.76.173] (port=55793 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqzgJ-00037B-62 for emacs-devel@gnu.org; Mon, 06 Apr 2009 21:00:51 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:61082) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LqzgI-0002iy-Ap for emacs-devel@gnu.org; Mon, 06 Apr 2009 21:00:50 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n3710kDK023361; Tue, 7 Apr 2009 10:00:46 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n3710kPA017059; Tue, 7 Apr 2009 10:00:46 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n3710jLq019256; Tue, 7 Apr 2009 10:00:45 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LqzhC-0004Sr-E4; Tue, 07 Apr 2009 10:01:46 +0900 In-reply-to: (message from YAMAMOTO Mitsuharu on Tue, 07 Apr 2009 08:47:45 +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:110107 Archived-At: In article , YAMAMOTO Mitsuharu writes: > > Sorry but I don't have a time to read your code in detail. Could > > you explain why using GC extension data is better than (struct > > glyphs_string *)->clip? > I guess you introduced the members for clipping rectangles in struct > glyph_string because we can't extract such information, which is > necessary for text drawing, from the raw GC. Yes. > In the case of cairo > drawing, such information is also necessary for almost all kinds of > drawing, and the use of GC extension data allows us to extract > clipping rectangles without introducing a wrapper data structure of GC > (though we need a couple of wrapper functions, > x_(re)set_clip_rectangles). That doesn't answer my question. As I now don't remember well when and how it is used, just by reading your comment, I don't understand what is the problem of using (struct glyphs_string *)->clip, and how using GC extention data solves it. --- Kenichi Handa handa@m17n.org