I'm not sure what you mean by "cairo backend". Pango.Cairo allow using Pango to render to Cairo surfaces.
http://developer.gnome.org/doc/API/2.0/pango/pango-Cairo-Rendering.html
So I think it should be wrapped.
Yes "pango_cairo_show_layout" is the only function nedded for the Printing Demo, but there must be other functions that is usefull. (I'm no pango nor cairo expert, so I could'nt say).
/Mikkel
On Wed, 2006-08-09 at 15:45 -0500, Mike Kestner wrote:
On Tue, 2006-08-08 at 21:41 +0200, Mikkel Kruse Johnsen wrote: > Hi Again > > Here is an update for the DemoPrinting. I have wrapped Pango.Cairo > (some of it) and made a patch for it. > > 1. unpack pangocairo.tar.gz in base gtk-sharp. > 2. Copy DemoPrinting.cs to samples/GtkDemo > 3. Patch it with PangoCairoPrinting.patch > 4. run bootstrap-2.10 > > There is no more manually wrapping in DemoPrinting. > > Could someone take a look at it and see if it can go into svn or if it > needs more work and give me some feedback !! So if I understand the patch correctly, pango_cairo_show_layout is the only cairo backend method needed? I don't think we want to expose the backend code in pango-sharp. If there is really no way to draw a layout on a PrintContext without going direct to the cairo backend, that seems like a bug.
Med Venlig Hilsen
|
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
