[cairo] [PATCH] PS/PDF improve efficiency of text output

Behdad Esfahbod behdad at behdad.org
Sun Sep 24 19:37:00 PDT 2006

On Sun, 2006-09-24 at 22:06 -0400, Dominic Lachowicz wrote:
> Why would this be generic to all surfaces, rather than specific to
> PS/PDF surfaces? The API wouldn't make much sense for (eg.) GDI, X11,
> Quartz, meta, directfb, BeOS, or image surfaces. I'm thinking that
> it's a lot more akin to the SVG surface's restrict_to_version()
> primitive.

Well, it can be used in write_to_png too.  Donno about SVG, but that has
some support for compression too I assume?

This is a common theme that we have not quite addressed in cairo yet:
what gets into the common namespace and what into backend-specific ones?
cairo_show_page() for example is as much PS/PDF dependent that
compression_level is.  SVG's restrict_to_version is different in that
you /cannot/ have a non-SVG-specific for it, as in, you need enum values
that are named SVG-something.  But for compression level, or page, you
can name them and describe their action without referring to any
specific backend.  That's my compass.


"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"

More information about the cairo mailing list