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: font-backend mechanism on Windows and Mac? Date: Sat, 15 Sep 2007 11:24:15 +0900 Message-ID: References: <46E4F571.3030101@gnu.org> <46E54A83.2070702@gnu.org> <46E54B7B.3070104@gnu.org> <46E93E1C.3030808@gnu.org> <46EA9371.7020701@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1189823089 24066 80.91.229.12 (15 Sep 2007 02:24:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2007 02:24:49 +0000 (UTC) Cc: adrian.b.robert@gmail.com, emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 15 04:24:48 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 1IWNKx-0000NI-5m for ged-emacs-devel@m.gmane.org; Sat, 15 Sep 2007 04:24:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWNKw-0003qx-Fp for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2007 22:24:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IWNKt-0003pX-1p for emacs-devel@gnu.org; Fri, 14 Sep 2007 22:24:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IWNKq-0003mS-2z for emacs-devel@gnu.org; Fri, 14 Sep 2007 22:24:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWNKp-0003m8-Po for emacs-devel@gnu.org; Fri, 14 Sep 2007 22:24:39 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IWNKf-0006UA-Sg; Fri, 14 Sep 2007 22:24:34 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id l8F2OIR0018457; Sat, 15 Sep 2007 11:24:18 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id l8F2OIbj008131; Sat, 15 Sep 2007 11:24:18 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id l8F2OFsC002935; Sat, 15 Sep 2007 11:24:15 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.67) (envelope-from ) id 1IWNKR-0004wN-H7; Sat, 15 Sep 2007 11:24:15 +0900 In-reply-to: <46EA9371.7020701@gnu.org> (message from Jason Rumney on Fri, 14 Sep 2007 14:58:09 +0100) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.0 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Detected-Kernel: Solaris 8 (1) 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:78938 Archived-At: In article <46EA9371.7020701@gnu.org>, Jason Rumney writes: > Kenichi Handa wrote: > > Do you mean that the displaying got slower after the recent > > change? > Perhaps, it does seem a little slower, and the more complex clipping > masks might have caused that, but I think most of the slowness is from > the new font-backend itself. It seems to be outputting a character at a > time, rather than whole lines. It might be due to a workaround in the > Windows code to avoid a Cleartype bug in the old font code (though I'd > expect the old code to be similarly slow in that case), or it might be > not combining multiple redraw requests as the overlapping window is > moved over the Emacs frame. As I wrote before, metrics calculation is done one glyph by one, but rendering is done for a block of glyphs (i.e. those in one "struct glyph_string"). Anyway, while debugging the previous problem, I found that the display engine (regardless of font-backend) does lots of unnecessary clipping for exposing. But, improving it requires rather big changes. --- Kenichi Handa handa@m17n.org