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

Vladimir Vukicevic vladimirv at gmail.com
Sun Sep 24 21:21:26 PDT 2006


On 9/24/06, Behdad Esfahbod <behdad at behdad.org> wrote:
> 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.

cairo_show_page is actually relevant to both Win32 and Quartz, since
those use the same API for printing as they do for rendering to the
screen.

There can potentially be a ton of these options; I'd suggest a generic
cairo_surface_set_float_param or _set_int_param or _set_string_param
(or some better way of representing this)... I know Carl isn't a big
fan of such generic functions, but I think that this is more
preferable to having an explosion of API methods, whether in the
global namespace or in the surface namespace.

    - Vlad


More information about the cairo mailing list