[cairo] Progress on cairo-based "print to PDF" from Mozilla

Carl Worth cworth at cworth.org
Wed Jun 21 17:40:36 PDT 2006


On Mon, 19 Jun 2006 16:01:00 -0700, Carl Worth wrote:
> > Bad:  You'll notice that the small text in the four corners of this
> >       page is showing up as black boxes instead of the real
> >       text.
> 
> I'm currently working on this one. It's easy to reproduce with a
> minimal test case, (just drawing any text to a PS/PDF surface with a
> bitmapped font).

I added a testcase for this (test/bitmap-font) and have now fixed both
PS and PDF backends so that they pass this test. (I also updated the SVG
backend so it won't crash on this test like it did at first, but it's
not yet drawing the bitmapped glyphs---instead just drawing
rectangles).

So the minefield PDF result is now looking quite good:

http://cairographics.org/~cworth/images/minefield-working-bitmap-glyphs.pdf

The only major bug in that file is the broken character
selection. We're close enough now to being done with the 1.2 release,
(just a few short days now), that I think the right thing to do might
be to just punt the truetype font subsetting out until after 1.2 when
the bug can be fixed.

Doing that would mean that character selection still wouldn't work
with cairo's PDF output, but at least viewers wouldn't try and fail,
they would just not let the user select anything at all.

And of course, we could do a minor release shortly after 1.2 if the
truetype subsetting gets fixed soon, (it doesn't have any API impact
after all).

I'll update the ROADMAP tonight, and add the few "blocker" bugs we
found in bugzilla and sketch out some priorities on fixing/punting
what's left.

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060621/fe1b3662/attachment.pgp


More information about the cairo mailing list