> I don't know too much about the gerber file format... but I have > access to a commercial EDA program that cuts the silk layer using > the solder mask. This seems what you have coded, but I never had > problems with it.
Well, there's two ways to cut silk. 1. Use a negative polarity layer to undraw it. 2. Modify the silk itself to just not draw there. The second is a better solution, although you have to calculate the intersection of all silk lines with all pins/pads and do the heavy math to figure out how to break up the silk into segments to you just happen to not draw over the pins/pads. Negative polarity undraws was much easier to implement, although it seems the easy way out isn't the right way after all. Maybe we could do the heavy math on user command, and have DRC complain about it. Combining that with actually drawing the silk over the pads on the screen so the user sees the problem might be sufficient.
