Drawshield-Code icon indicating copy to clipboard operation
Drawshield-Code copied to clipboard

Divisions of Charges divide all paths within the SVG separately

Open TestTimothy opened this issue 1 year ago • 2 comments

# Testing for divisions of charges
a roll of 2 columns
title "Divided Charges"
consisting of
argent a lozenge per pale vert and purpure
caption "A charge with a single SVG path"
then
argent a fleur de lys per pale vert and purpure
caption "A charge with multuiple SVG paths"
then
argent a lion per pale vert and purpure
caption "A complex SVG (per pale)"
then
argent a lion per bend vert and purpure
caption "A complex SVG (per bend)"

divided roll

TestTimothy avatar May 20 '24 22:05 TestTimothy

Divisions per bary and per paly are also wrong in the same way. I probably should have included some in the test case.

TestTimothy avatar May 20 '24 22:05 TestTimothy

Yes, I don't know of an easy way to fix this, it is an artifact of the way that SVG pattern fills work when you pattern fill a group of objects like the lion (the fill is applied before the grouping, when we really want it to work the other way around).

It could possibly be fixed by using the charge as a mask on to the division but then you would need to overlay the charge again with a coloured stroke and transparent fill to get the details and shading back and then apply the features separately but it all got too complicated and my brain started to hurt.

As you note, it only works neatly if the charge is a single SVG path (so only the very simple, geometric ones), but it can produce some nice unintentional effects on really complicated shapes like the lions.

So sorry, yes you are correct but I can't fix it.

karlwilcox avatar May 20 '24 22:05 karlwilcox