Re: should textLength="0" disable rendering?

Jasper van de Gronde wrote:
> That depends. As far as I can see the spec isn't completely clear on how
> glyphs should be stretched. If any stroke gets stretched along with the
> glyphs (or if only a fill is applied, as is not uncommon), then indeed
> nothing would be rendered. On the other hand, if the glyphs are
> stretched /before/ stroking, then textLength="0" would typically show a
> a short vertical line (assuming lengthAdjust="spacingAndGlyphs", and
> depending on the orientation of the text obviously).

Ah, good point.  I think the glyphs should indeed be stretched before 
stroking (and filling), so the stroke should still be visible.

> To echo the comments made before, I would recommend /not/ special-casing
> the value "0". Just do whatever you would normally do and make sure it
> doesn't blow up in your face if you give it a zero length. If you really
> need to special case it for some reason, just look at what happens when
> you use textLength="0.00001" or something.

Yeah, agree.

Received on Tuesday, 9 July 2013 07:33:33 UTC