Convert path data to alternate fill-rule?

Asked by Taylor Hunt

I'm using Inkscape and Font Forge together to make webfonts. Due to differences in how CFF and SVG perform their overlapping fills, I find myself having to reverse-engineer a lot of existing path data to "point" the other direction so I can apply fill-rule="evenodd".

This is extremely tedious and error-prone, and I was hoping Inkscape can "reorder" path data to work with the opposite fill-rule somehow.

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
Mc
Solved:
Last query:
Last reply:
Revision history for this message
Hachmann (marenhachmann) said :
#1

Hi Taylor,

as I'm not much into fonts, can you give a step by step of the things you need to do that you would like to sum up into a single step, and post a link to an example file (attachments do not work here)?

Regards,
 Maren

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
Taylor Hunt (tigt) said :
#3

Here we are: http://codepen.io/tigt/pen/wgeqOZ?editors=1000

Ideally, I could select a shape, and convert it from the first example to the 3rd.

Revision history for this message
Best Mc (mc...) said :
#4

After you isolate (with path->break apart) the path segment you want to reverse, path->reverse makes it "point to the other direction". then ctrl+k (path->combine) can combine it back together.

Revision history for this message
Taylor Hunt (tigt) said :
#5

Excellent! It would be wonderful if I could use Inkscape's CLI to automate that somehow (auto-detection of what needs reversing would be the tricky part), but that's already a huge improvement. Thank you.

Revision history for this message
Taylor Hunt (tigt) said :
#6

Thanks Mc, that solved my question.