[cairo] How to draw an invisible rectangle?

Tuom Larsen tuom.larsen at gmail.com
Sun Dec 16 14:20:37 PST 2007


On Dec 16, 2007 9:18 PM, Baz <brian.ewins at gmail.com> wrote:

> On Dec 16, 2007 7:13 PM, Tuom Larsen <tuom.larsen at gmail.com> wrote:
> >
> > - it requires PDF 1.4
>
> That's what cairo emits. I'm struggling to think of a pdf reader that
> doesn't support PDF 1.4 - do you mean as opposed to Postscript?


There are still some RIPs, printers and presses which support PDF 1.3 only
and Acrobat (6.0) lists transparency as potential problem (for printing).



>
>
> > - doesn't work that well for lines and open curves because a line has a
> > width which might grow the bbox
>
> You used an svg example - in svg the bbox doesn't include stroke
> width. There are differences between cairo's reported extents and
> svg's bbox for lines; see this thread for details:
> http://lists.cairographics.org/archives/cairo/2007-November/012011.html
>
>
I just found out that I can fill() the lines and curves, instead of
stroking() -- that emits style="stroke: none".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20071216/7cef1dc9/attachment.html 


More information about the cairo mailing list