This issue can be "fixed" by not using LineCap::Square, by using larger stroke width (which would simply disable hairline stroking) and by closing the path manually, without relying on ClosePath/Z.
The Skia itself produces similar results, but not quite the same. Not sure if this is actually a Skia bug or an intentional behaviour.
produces (8x upscale, actual/expected):
This issue can be "fixed" by not using
LineCap::Square
, by using larger stroke width (which would simply disable hairline stroking) and by closing the path manually, without relying on ClosePath/Z.The Skia itself produces similar results, but not quite the same. Not sure if this is actually a Skia bug or an intentional behaviour.