From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Antialiased text on X11 Date: Sat, 19 Mar 2005 07:27:38 +0100 Message-ID: References: <20050310231530.GH3992@boetes.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1111213920 30471 80.91.229.2 (19 Mar 2005 06:32:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2005 06:32:00 +0000 (UTC) Cc: Ali Ijaz Sheikh , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 19 07:32:00 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DCXV5-0003ga-Fi for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2005 07:31:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DCXli-0005r0-Ed for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2005 01:49:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DCXkz-0005gZ-8w for emacs-devel@gnu.org; Sat, 19 Mar 2005 01:48:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DCXkp-0005b2-OS for emacs-devel@gnu.org; Sat, 19 Mar 2005 01:48:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DCXko-0005ZO-91 for emacs-devel@gnu.org; Sat, 19 Mar 2005 01:48:10 -0500 Original-Received: from [195.54.107.73] (helo=mxfep02.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DCXRU-00022Y-RE; Sat, 19 Mar 2005 01:28:13 -0500 Original-Received: from coolsville.localdomain ([83.226.180.210] [83.226.180.210]) by mxfep02.bredband.com with ESMTP id <20050319062811.QFRV4482.mxfep02.bredband.com@coolsville.localdomain>; Sat, 19 Mar 2005 07:28:11 +0100 In-Reply-To: Original-To: miles@gnu.org, snogglethorpe@gmail.com X-Mailer: Apple Mail (2.619.2) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34762 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34762 > [The question of whether to support just xft or try to go for an > entire new rendering layer like Cairo is interesting -- my impression > is that porting to a new rendering layer is actually fairly > straight-forward; it might be the easier task than figuring out the > convoluted Emacs font-selection machinery (required in either case I > guess -- but it means that "xft only" might not be any easier > really)!] I have started on Xft support, but it is really something for the release after the next, so I don't spend much time on it yet. I can confirm your reasoning, the Emacs font-selection machinery is indeed the most tricky part, I have not done that fully, so I can't change font yet. But part of the problem is that the Xft font selection is entirely new compared to the old X font selection. The rendering was not that difficult, it was more finding the right font metrics that required some thought. Finally, the rendering (i.e. the actual drawing of text) is trivial in comparison. To use Cairo would not have helped a bit, rather the opposite. I'd would requre we dump most of the redisplay engine and let Cairo take care of it for Cairo to give any extra value. I am doing an Xft solution, I did not find the talked about Xft branch, so I started from scratch. The main reason for doing this is that I wanted to use the GTK file selection dialog, but since that dialog displays all fonts, including antialiased, Emacs can currently not use it. Jan D.