[cairo] Question about how Firefox 3 switching to use cairo as the graphics engine

Robert O'Callahan robert at ocallahan.org
Tue Feb 19 13:30:24 PST 2008

On Feb 19, 2008 8:02 PM, Vladimir Vukicevic <vladimir at pobox.com> wrote:

> Plugins on linux are a very different beast than win32/osx, because
> there isn't a standard printing interface on linux like there is on
> the other platforms.  I believe that the NPAPI provides only one way
> to print plugins on linux, and that's a "Give me an Encapsulated
> PostScript stream" method that is called while printing, with the
> result stuck into the output.  Obviously, this doesn't work unless
> you're manually generating postscript output.  However, I'm pretty
> sure that the only implementor of this API on linux is the Java
> plugin; future revs of NPAPI on linux will probably use cairo directly
> (or at least, I'm going to push heavily in that direction).

The other thing we can do is XComposite/XDamage Jedi mind tricks to capture
all plugin rendering, which we can then print as a bitmap. Not as good
quality as if we can persuade plugins to draw using cairo, of course.

"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20080220/4b35857b/attachment.html 

More information about the cairo mailing list