[svgwg] TextPath for zero length single closed path causes division by zero

karip has just created a new issue for https://github.com/w3c/svgwg:

== TextPath for zero length single closed path causes division by zero
 ==
[TextPath](https://svgwg.org/svg2-draft/text.html#TextPathAttributes) 
doesn’t say how the new special wrapping criteria for single [closed 
subpaths](https://svgwg.org/svg2-draft/paths.html#TermOpenSubpath) 
works for zero length paths (e.g. path="M0,0Z").

The [SVG Text 
Algorithm](https://svgwg.org/svg2-draft/text.html#TextLayoutAlgorithm)
 causes a division by zero if _length_ is zero (8.5.1.2.9. Set _mid_ =
 _mid_ mod _length_.).

I assume that all characters should have their "hidden" flag set to 
true, which means that no text is shown at all.


Please view or discuss this issue at 
https://github.com/w3c/svgwg/issues/272 using your GitHub account

Received on Thursday, 15 September 2016 08:00:32 UTC