[cairo] [PATCH] Enable links to image files in SVG backend
chris at chris-wilson.co.uk
Wed Jan 20 02:59:20 PST 2010
On Wed, 20 Jan 2010 12:43:12 +0200, Alexander Shulgin <alex.shulgin at gmail.com> wrote:
> But I don't buy people use png loader only for debugging purposes.
> It's so sweet and simple and tempting to use as opposed to libpng, and
> it's never been claimed "debugging only" API, at least in the docs
> (what users read actually).
Exactly the same trap as cairo_show_text(). :(
> Some evidence: http://www.google.com/codesearch?q=cairo_image_surface_create_from_png
And so few of them check CAIRO_HAS_PNG_FUNCTIONS.
> If user calls set_mime_data() explicitly, I'm OK with that, and he's
> on his own. But when we call it for him and he has no idea, I think
> it's broken.
It's a convenience API, primarily for loading pattern data, so I see
attaching the mime-data as part of that convenience.
Chris Wilson, Intel Open Source Technology Centre
More information about the cairo