From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: font-backend mechanism on Windows and Mac? Date: Sat, 15 Sep 2007 00:36:23 +0900 (JST) Message-ID: <20070915.003623.232342611.mituharu@math.s.chiba-u.ac.jp> References: <55f7df060709140652x54b42e4ax414969f07ad6ac21@mail.gmail.com> <20070914.235549.06787331.mituharu@math.s.chiba-u.ac.jp> <46EAA270.5040108@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189784226 9760 80.91.229.12 (14 Sep 2007 15:37:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2007 15:37:06 +0000 (UTC) Cc: adrian.b.robert@gmail.com, emacs-devel@gnu.org, handa@m17n.org To: jasonr@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 14 17:37:04 2007 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 1IWDE6-0007vp-50 for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2007 17:37:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWDE5-00015y-GJ for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2007 11:37:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IWDE2-00015k-Sj for emacs-devel@gnu.org; Fri, 14 Sep 2007 11:36:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IWDE1-00015Y-Dg for emacs-devel@gnu.org; Fri, 14 Sep 2007 11:36:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWDE1-00015V-6S for emacs-devel@gnu.org; Fri, 14 Sep 2007 11:36:57 -0400 Original-Received: from ntp.math.s.chiba-u.ac.jp ([133.82.132.2] helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IWDDw-00070e-2c; Fri, 14 Sep 2007 11:36:52 -0400 Original-Received: from localhost (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id D3C6C2C4A; Sat, 15 Sep 2007 00:36:40 +0900 (JST) In-Reply-To: <46EAA270.5040108@gnu.org> X-Mailer: Mew version 3.3 on Emacs 22.1 / Mule 5.0 (SAKAKI) X-Detected-Kernel: NetBSD 3.0 (DF) 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:78891 Archived-At: >>>>> On Fri, 14 Sep 2007 16:02:08 +0100, Jason Rumney said: > YAMAMOTO Mitsuharu wrote: >> Even with backing store, calls to drawRect:, which corresponds to >> the handler for expose events, occur when dragging the resize >> handle or just before the animation for deiconifying. I can >> observe whiteout during such operations on the Cocoa port, but not >> on the Carbon+AppKit port where the method is implemented as >> follows: > This whiteout may be due to the performance problems I observed in > the new font backend, rather than the differences in implementation > of drawRect between Carbon and Cocoa ports. Not "Carbon port" but "Carbon+AppKit port". The method `drawRect:' is used in the AppKit framework, which is a part of Cocoa. I just tried changing the implementation of `drawRect:' so it calls expose_frame, then the latter (deiconifying animation) whiteout disappeared. Fixing the former whiteout would need more work, but I suspect this is not due to some performance issue: I don't find the Cocoa port slow in drawing. > Or has the Carbon port been updated to use the font backend as well? I don't have a plan to do so at least until the next Mac OS X release, which brings us a new framework for text drawing. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp