From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: Printing Date: Sat, 04 Apr 2009 10:40:54 +0100 Organization: University of Cambridge Message-ID: References: <5f0660120903280331y780c80b7i57a8115dc4b029eb@mail.gmail.com> <49CE3A84.9070705@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1238838098 4243 80.91.229.12 (4 Apr 2009 09:41:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Apr 2009 09:41:38 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 04 11:42:56 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 1Lq2Oq-0002Qb-E2 for ged-emacs-devel@m.gmane.org; Sat, 04 Apr 2009 11:42:52 +0200 Original-Received: from localhost ([127.0.0.1]:59698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lq2NS-00037s-85 for ged-emacs-devel@m.gmane.org; Sat, 04 Apr 2009 05:41:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lq2NM-00037n-73 for emacs-devel@gnu.org; Sat, 04 Apr 2009 05:41:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lq2NH-00035a-EA for emacs-devel@gnu.org; Sat, 04 Apr 2009 05:41:19 -0400 Original-Received: from [199.232.76.173] (port=48163 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lq2NH-00035N-9I for emacs-devel@gnu.org; Sat, 04 Apr 2009 05:41:15 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:44075 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lq2NG-0007ds-P8 for emacs-devel@gnu.org; Sat, 04 Apr 2009 05:41:15 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Lq2N8-0001qT-ES for emacs-devel@gnu.org; Sat, 04 Apr 2009 09:41:06 +0000 Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Apr 2009 09:41:06 +0000 Original-Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Apr 2009 09:41:06 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:lxAnIy0p8vvZbIAYHYwynB8lw4I= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:110061 Archived-At: On 2009-04-04 03:44 +0100, YAMAMOTO Mitsuharu wrote: [...] > Here's the patch for the Emacs 23.0.92 pretest (not the trunk HEAD). > > * No configure support. The easiest way would be to compile it with > the GTK+ support that is already linked with cairo libs. Add > -DUSE_CAIRO to CFLAGS to activate the cairo code. > > * With an experimental function (x-export-frame-image FRAME TYPE), you > can get the current FRAME screenshot as a unibyte string in TYPE > format. TYPE can be 'pdf, 'ps, 'png, or 'svg if the installed cairo > supports their formats. > > * Currently, texts, rectangles (filling and stroking), and trapezoids > for reliefs are drawn using cairo by hooking the corresponding > drawing routine calls in xterm.c. They use X11 GC (with extension > data) for colors and clipping rectangles, but operations on them can > easily be ported to non-X11 (e.g., terminal-only) environments just > like the Carbon port. > > * Images could also be drawn with cairo, but I didn't do that because > the image drawing in xterm.c depends on X-specific data structures. > As a result, you can't see any images in the exported screenshot as > of now. > > * Stipples are ignored (both on screen and exported one). > > * Exported png images seem to be incorrect in some cases. I suspect > it has something to do with cairo's cluttering the activated FT_Size > mentioned in ftcrfont.c, but I'm not sure. > > YAMAMOTO Mitsuharu > mituharu@math.s.chiba-u.ac.jp This is a giant step forward. -- .: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :. www.git-scm.com git - the one true version control system