![](https://secure.gravatar.com/avatar/84524eb6e916f5d548e7c7c0e41fd127.jpg?s=120&d=mm&r=g)
On Wed, 2015-08-26 at 05:10 +0200, Juan Luis Boya GarcĂa wrote:
I've found rendering the outline as a stroked line is not always enough. See for example this elephant shape: http://i.imgur.com/vEv9k5H.png Although the outline is right, it does not produce the desired result as a significant part of the original shape (pink) has been clipped.
Yes, stroking an outline doesn't work for insets. It works for outsets except dashes will be shifted.
Miters can partly alleviate the problem but due to being linear they offer poor approximation: http://i.imgur.com/8xSgdnr.png
Miters are not a good solution.
Having found this issue now I'm using fill instead of stroke. http://i.imgur.com/7ntxkqV.png
This works for solid strokes but not for dashed strokes.
It seems that implementing 'stroke-alignment' isn't as easy as one would first think!
Tav