Date: Sat, 25 Nov 2006 14:35:38 +0000 To: Olivier Andrieu Cc: lablgtk at math.nagoya-u.ac.jp Subject: Re: Pango & Cairo Message-ID: <20061125143534.GA25925 at furbychan.cocan.org> References: <20061124141850.GA12700 at furbychan.cocan.org> <17767.15381.998385.993251 at karryall.dnsalias.org> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <17767.15381.998385.993251 at karryall.dnsalias.org> From: Richard Jones Content-Type: text/plain; charset=us-ascii Content-Length: 1400 On Fri, Nov 24, 2006 at 07:38:13PM +0100, Olivier Andrieu wrote: > Richard Jones [Friday 24 November 2006] : > > > > > > I'm trying to use a Cairo surface[1] to draw text, and I want to > > "get serious" about text, going beyond the very simple features > > offered by Cairo itself. As far as I understand, I need to use > > Pango-Cairo[2] for this. > > > > Is Pango-Cairo available anywhere as OCaml bindings? > > Not that I know of. Indeed, this need to be added to cairo-ocaml ... OK, well here's my attempt to start this work. I would really appreciate your insights into this. I am particularly having trouble working out what the type of Pango_cairo.font_map should be. (1) Patch to lablgtk2 20060908 snapshot to add some additional functions and types for Pango: http://www.annexia.org/tmp/lablgtk2-20060908-pangoadditions1.diff (2) Patch to cairo-ocaml (from CVS) to add a Pango_cairo module and the demo program: http://www.annexia.org/tmp/cairo-ocaml-pangocairo1.diff (3) Output from the demo program, and the original C demo program compared: http://www.annexia.org/tmp/pangocairo.png http://developer.gnome.org/doc/API/2.0/pango/rotated-text.png Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Internet Marketing and AdWords courses - http://merjis.com/courses - NEW! Merjis blog - http://blog.merjis.com - NEW!