When drawing to SVGFileDC, I see 2 errors regarding pen and brush styles:
DrawLine() produces an error, when pen styles are either wx.DOT, wx.DOT_DASH or wx.SHORT_DASH, but wx.SOLID works fine.
Here’s the error:
wx._core.wxAssertionError: C++ assertion “false” failed at …\src\common\dcsvg.cpp(84) in `anonymous-namespace’::wxPenString(): wxSVGFileDC::Requested Pen Style not available
DrawRectangle() produces an error, when brush styles are either wx.CROSSDIAG_HATCH, wx.BDIAGONAL_HATCH or wx.FDIAGONAL_HATCH, but wx.SOLID works fine.
Here’s the error:
wx._core.wxAssertionError: C++ assertion “false” failed at …\src\common\dcsvg.cpp(104) in `anonymous-namespace’::wxBrushString(): wxSVGFileDC::Requested Brush Style not available
Enclosed a script demonstrating these issues.
svg_pen_brush.py (1.95 KB)