@ahwitz What needs to be implemented is SVGDeviceContext::ReStartGraphic and SVGDeviceContext::ReEndGraphic (which btw can be renamed to something better if you have any ideas). I put some comments in the methods for explaining what is supposed to happen there.