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: reducing equality tests in displaying text Date: Thu, 29 Jan 2009 11:46:09 +0900 Message-ID: References: <49811688.4030309@gnu.org> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1233197180 29015 80.91.229.12 (29 Jan 2009 02:46:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2009 02:46:20 +0000 (UTC) Cc: mituharu@math.s.chiba-u.ac.jp, emacs-devel@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 29 03:47:33 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 1LSMwG-000682-UU for ged-emacs-devel@m.gmane.org; Thu, 29 Jan 2009 03:47:33 +0100 Original-Received: from localhost ([127.0.0.1]:44153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSMuy-0008Q8-O9 for ged-emacs-devel@m.gmane.org; Wed, 28 Jan 2009 21:46:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSMut-0008PS-Qd for emacs-devel@gnu.org; Wed, 28 Jan 2009 21:46:07 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSMur-0008OJ-JF for emacs-devel@gnu.org; Wed, 28 Jan 2009 21:46:06 -0500 Original-Received: from [199.232.76.173] (port=56940 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSMur-0008O7-Ct for emacs-devel@gnu.org; Wed, 28 Jan 2009 21:46:05 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:62440) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LSMun-0004gz-K2; Wed, 28 Jan 2009 21:46:02 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n0T2k05a027702; Thu, 29 Jan 2009 11:46:00 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n0T2jxNa021400; Thu, 29 Jan 2009 11:45:59 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id n0T2jxDe004313; Thu, 29 Jan 2009 11:45:59 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LSMuv-0007Uz-T4; Thu, 29 Jan 2009 11:46:09 +0900 In-reply-to: <49811688.4030309@gnu.org> (message from Jason Rumney on Thu, 29 Jan 2009 10:38:00 +0800) 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:108350 Archived-At: In article <49811688.4030309@gnu.org>, Jason Rumney writes: > Kenichi Handa wrote: >>> Another (maybe cleaner) design would be to separate the current >>> `has_char' function into that for font entities (font listing layer) >>> and that for font objects (font driving layer). >>> > > > > Ah, it seems that is a good idea. I put that in my todo list. > > > Isn't encode_char sufficient for font_object use? It will return > FONT_INVALID_CODE if the font does not have that char. It depends. For instance, Xft has two separate functions XftCharExists and XftCharIndex, and it seems that the former is faster. --- Kenichi Handa handa@m17n.org