[cairo] Cleaning up the PDF API

Owen Taylor otaylor at redhat.com
Tue May 17 05:16:06 PDT 2005


On Tue, 2005-05-17 at 05:06 -0700, Carl Worth wrote:
> On Tue, 17 May 2005 07:56:51 -0400, Owen Taylor wrote:
> > So, you disagree with the idea that a language binding should
> > be able to implement cairo_pdf_surface_create(filename...)
> > in terms of its native IO implementation and 
> > cairo_pdf_surface_create_for_stream()?
> 
> Not at all. As I said earlier in the thread, that seems like a useful
> thing to do as I said above (see quote below).
> 
> It just doesn't seem like it's asking a lot to have the binding author
> clean up from this style of cairo_pdf_surface_create in
> cairo_surface_finish.
> 
> It doesn't seem to qualify for the test you proposed of forcing the
> binding author to understand complex interdependencies in order to get
> a correct binding.

My conception is that if you call cairo_surface_create... from
Python, say, that shouldn't force calling cairo_surface_finish()
from Python. That tends to be quite fragile.

Regards,
					Owen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050517/78cc2b7d/attachment.pgp


More information about the cairo mailing list