19 lines
319 B
Python
19 lines
319 B
Python
# robothon06
|
|
# Use FontLab pathfinder functionality to cut one glyph from another
|
|
|
|
from robofab.world import CurrentFont
|
|
|
|
f = CurrentFont()
|
|
|
|
base = f["A"]
|
|
cutter = f["B"]
|
|
dest = f["C"]
|
|
|
|
dest.clear()
|
|
dest.appendGlyph(base)
|
|
dest.width = base.width
|
|
dest.naked().Bsubtract(cutter.naked())
|
|
|
|
dest.update()
|
|
|