Re: Line caps for moveto-movetp path segments(?)

Hello,

just to avoid misunderstandings.
In the definition of the stroke proptery it is defined, that 
"A subpath (see Paths) consisting of a single moveto shall not be stroked."
http://www.w3.org/TR/2011/REC-SVG11-20110816/painting.html#StrokeProperty

Of course stroke-linecap applies only to stroked subpaths:
"‘stroke-linecap’ specifies the shape to be used at the end of open subpaths 
when they are stroked.'
http://www.w3.org/TR/2011/REC-SVG11-20110816/painting.html#StrokeLinecapProperty


Therefore in the following path only the last subpath results in a visible
presentation, if stroke-linecap is round or square, but not the previous
moves:
d="M50,50m1400,-1200m-500,-200 0,0"
This  notation of two or more m-commands can be pretty useful to move 
around larger amounts of path data containing only relative commands,
possibly realised with path fragments represented by own entities.
The rule above ensures, that these additional moves have no
visual residuals...

On the other hand the following path creates  three stroked subpaths 
of zero length, which become visible, if stroke-linecap is round or
square:
d="M50,50 50,50m1400,-1200 0,0m-500,-200 0,0"


Olaf

Received on Saturday, 15 June 2013 11:20:19 UTC