SOLVED booleanOperations for dummies
-
Hi,
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"])
Thank
-
-
@gferreira so sorry, yes, I got it!
-
I found the answer with a very clear example here:
https://robofont.com/documentation/building-tools/toolkit/boolean-glyphmath/font = CurrentFont() g1 = font["B"] g2 = font["x"] # difference result = g1 % g2 dest = font["B"] dest.clear() dest.appendGlyph(result)
-