2014-04-11 21:22 GMT+02:00 Krzysztof Kosiński <tweenk.pl@...400...>:
Text that contains only whitespace (doesn't generate any paths) should be automatically deleted when it is deselected. This would be an extension of what happens when the user clicks on the canvas on the text tool but doesn't type anything; no object is created in that case. Similarly, when a text editing event results in the object containing only whitespace, it should be removed from the object tree and re-inserted once a visible glyph becomes part of the text.
Addendum: the paragraph above is certainly up for discussion (in my opinion it would make things easier for users), but in general I am very firmly against redefining the concept of visual bounding box in a completely inconsistent way just because it makes a feature easier to implement.
If decorated whitespace does not become part of the visual bounding box and is not pickable (i.e. clicking it does not select the text object), then the implementation of decoration is buggy. The solution is to fix picking and bounding box calculation for decorated text, not break it for all non-decorated text.
Regards, Krzysztof