When executing both RenderContext::stroke and RenderContext::fill,
passing the same Shape, such as a BezPath results in multiple path elements in the output when using piet-svg output.
I wonder if this calls for a function that combines both stroke and fill operations, or perhaps some Renderable or Drawable trait which has both shape/geometry and stroke/fill/style information.
Maybe though I'm missing some way to achieve this already via the Brush API though I don't think so.
Here is some output which rather than one path with both fill="#304040" stroke="#000000", you get 2 paths.
When executing both
RenderContext::stroke
andRenderContext::fill
, passing the sameShape
, such as aBezPath
results in multiplepath
elements in the output when using piet-svg output.I wonder if this calls for a function that combines both
stroke
andfill
operations, or perhaps someRenderable
orDrawable
trait which has both shape/geometry and stroke/fill/style information.Maybe though I'm missing some way to achieve this already via the
Brush
API though I don't think so.Here is some output which rather than one path with both
fill="#304040" stroke="#000000"
, you get 2 paths.