[cairo] Bug in PDF output with independent path/pen transformations
Behdad Esfahbod
behdad at behdad.org
Tue Oct 30 23:08:51 PDT 2007
On Tue, 2007-10-30 at 21:17 -0700, Carl Worth wrote:
>
> I'll look forward to that.
>
> > In the mean time, this works:
> ...
> > - snprintf (buffer, size, "%f", d);
> > + snprintf (buffer, size, "%20.15f", d);
>
> Yes, that does work. And for our PDF files with compressed streams, it
> doesn't have a significant impact on the file sizes. But that's pretty
> harsh for our uncompressed PostScript output.
In fact "%.15f" should not affect PostScript size that much and still
fixes the problem. But now that you released 1.5.2, lets fix it
properly. In the mean time "%.15f" is good enough a fix so I push it.
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo
mailing list