booleanOperations for dummies
I'm trying to work with booleanOperations in my font, but I get no result, nor error. I want to change the shape of my glyph "B" by applying a boolean operation (difference) using the shape in my glyph "x"
Could you give me a pointer what I'm doing wrong?
from booleanOperations.booleanGlyph import BooleanGlyph font = CurrentFont() BooleanGlyph(font["B"]).difference(font["x"])
I found the answer with a very clear example here:
font = CurrentFont() g1 = font["B"] g2 = font["x"] # difference result = g1 % g2 dest = font["B"] dest.clear() dest.appendGlyph(result)
@gferreira so sorry, yes, I got it!