From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: antialiasing for emacs Date: 25 Jul 2003 11:02:05 +0900 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87u19bbr02.fsf@chicolini.ods.org> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1059098596 29298 80.91.224.249 (25 Jul 2003 02:03:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 25 Jul 2003 02:03:16 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Jul 25 04:03:14 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19frvN-0007cI-00 for ; Fri, 25 Jul 2003 04:03:13 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19fsDl-0001T9-00 for ; Fri, 25 Jul 2003 04:22:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19frue-0003C7-Km for emacs-devel@quimby.gnus.org; Thu, 24 Jul 2003 22:02:28 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19fruV-0002yN-Fa for emacs-devel@gnu.org; Thu, 24 Jul 2003 22:02:19 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19fruS-0002p2-BP for emacs-devel@gnu.org; Thu, 24 Jul 2003 22:02:16 -0400 Original-Received: from tyo202.gate.nec.co.jp ([210.143.35.52]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19fruO-0002d5-53; Thu, 24 Jul 2003 22:02:12 -0400 Original-Received: from mailgate3.nec.co.jp ([10.7.69.186]) by TYO202.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id h6P228d23109; Fri, 25 Jul 2003 11:02:08 +0900 (JST) Original-Received: from mailsv.nec.co.jp (mailgate51.nec.co.jp [10.7.69.196]) by mailgate3.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id h6P227Y07515; Fri, 25 Jul 2003 11:02:07 +0900 (JST) Original-Received: from edtmg03.lsi.nec.co.jp ([10.26.16.203]) by mailsv.nec.co.jp (8.11.6/3.7W-MAILSV-NEC) with ESMTP id h6P226S06665; Fri, 25 Jul 2003 11:02:06 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp (localhost [127.0.0.1]) by edtmg03.lsi.nec.co.jp (8.9.3p2+3.2W/3.7W_EDC_Ver.1.0) with ESMTP id LAA28958; Fri, 25 Jul 2003 11:02:06 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.12.8/8.12.8/EDcg v2.01-mc/1046780839) with ESMTP id h6P225NH019222; Fri, 25 Jul 2003 11:02:05 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id 7C282372A; Fri, 25 Jul 2003 11:02:05 +0900 (JST) Original-To: emacs-devel@gnu.org System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <87u19bbr02.fsf@chicolini.ods.org> Original-Lines: 42 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15700 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15700 --=-=-= Hi, I tried your patch, which seemed to work very well at first -- my normal emacs fonts were indeed anti-aliased, and looked very nice. The patch seems impressively small. I had to use the following extra patch to get things to compile on my system (Debian unstable), apparently due to bogosities in . I'm not sure why your change tickled it; maybe due to including in dispextern.h. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=emacs-xfns-png-include.patch Content-Description: Patch to include before emacs-specific includes --- src/xfns.c.~1.587.~ 2003-07-23 09:51:51.000000000 +0900 +++ src/xfns.c 2003-07-25 10:45:32.000000000 +0900 @@ -28,6 +28,14 @@ Boston, MA 02111-1307, USA. */ #include #endif +#ifdef HAVE_PNG +# if defined HAVE_LIBPNG_PNG_H +# include +# else +# include +# endif +#endif /* HAVE_PNG */ + /* This makes the fields of a Display accessible, in Xlib header files. */ #define XLIB_ILLEGAL_ACCESS @@ -7565,12 +7573,6 @@ pbm_load (f, img) #if HAVE_PNG -#if defined HAVE_LIBPNG_PNG_H -# include -#else -# include -#endif - /* Function prototypes. */ static int png_image_p P_ ((Lisp_Object object)); --=-=-= When I tried to go into info (which uses a fair number of fonts), emacs hung, with an error on standard output like: Xlib: unexpected async reply (sequence 0x1248)! I then tried to start emacs with a more standard configuration, and _that_ made it hang immediately with a similar error message: (emacs) xrdb -remove (emacs) src/emacs -q -fn -*-courier-medium-r-*--12-*-*-*-*-*-iso8859-1 Xlib: unexpected async reply (sequence 0x545)! [I had to use the `-fn' option because the standard font emacs uses doesn't seem to exist on my system!] I guess this must be one of the small bugs you were talking about... :-) > [1] The slowness is because I can't trust the attributes of a face not > to change. If there was a different face for the cursor than the rest > of the text (instead of simply changing the GC), the story would be > different. I'm confused by this -- isn't there a separate face for the cursor (`cursor')? -miles -- If you can't beat them, arrange to have them beaten. [George Carlin] --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel --=-=-=--