[cairo] Extents of degenerate paths

Behdad Esfahbod behdad at behdad.org
Thu May 10 13:09:02 PDT 2007


On Thu, 2007-05-10 at 12:12 -0500, T Rowley wrote:
> On 5/10/07 11:35 AM, Behdad Esfahbod wrote:
> > Bill, you are more than welcome to come up with a backward-compatible
> > proposal (like a new hairline mode, no abuse of line-width=0), with
> > complete semantics of how it should work (for example, what happens if
> > you draw a line from 0,0 to 0,10?.  After that you need to find someone
> > to implement it.
> > 
> > Other than that, I don't think raising this issue again and again
> > changes anything.  Also I don't see any indication in T Rowley's message
> > that he was trying to achieve hairlines.
> 
> While I do think that a hairline mode would be useful, in this case all 
> I wanted to do was measure the extent of a piece of geometry exclusive 
> of stroke properties.  This is needed in SVG for object bounding box 
> units and DOM APIs.

That's the same as fill extents most of the time.  I still think a
path_extents helps.

-- 
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