Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Divisions of Charges divide all paths within the SVG separately #676

Open
TestTimothy opened this issue May 20, 2024 · 2 comments
Open

Divisions of Charges divide all paths within the SVG separately #676

TestTimothy opened this issue May 20, 2024 · 2 comments

Comments

@TestTimothy
Copy link

TestTimothy commented May 20, 2024

# 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
Copy link
Author

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

@karlwilcox
Copy link
Collaborator

karlwilcox commented May 20, 2024

Yes, I don't know of an easy way to fix this, it is an artifact of the way that SVG pattern fills work (the fill is applied before the grouping, when you 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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants