Remove overlap
Hello,
What is the best way to remove overlap?
I made two shapes,
shape 1:

shape 2:

shape 1 and 2:

After Removing overlap (I’m using FontLab Studio om Mac) I got two new nodes which I don’t want (red arrows):

I’m sure the nodes and handles are right.
What went wrong?
Thanks,
Pieter


































6.Oct.2006 8.49am
I know it doesn’t sound like a solution, but can’t you just hand-delete the two nodes? If you put the original curves on the mask layer, you can tweak some handles to get as close as possible to the original curves.
The additional nodes are probably generated by some kind of rounding off / curve fitting scheme. I am not sure, but I thought that by definition T1 and TT curves could be cut (i.e. node inserted) at any point without affecting the overall shape. This only holds if you have an infinitely fine grid (mathematical x-y plane...), so it wouldn’t apply on the typical 1000 PPM grids FL works with. Bezier handles and nodes are then restricted to be placed on these incremental ’grid points’.
I guess that this is why FL sometimes inserts these additional nodes to best approximate the original curves. You could confirm this if you ’loosen up’ the original curves and make them meet at a larger angle, or if you size them up, so they span more grid points. At some point FL doesn’t have to insert extra nodes as it can put the Bezier handles more accurately.
Hope this theoretical speculation helps...
Sebastian
6.Oct.2006 11.04am
Hi Pieter,
the image you show for shape 2 is a bit confusing. We do not know where white and black is like this. Could you show the whole shape instead of just a section? Also, it would be helpful if you showed the BCPs. Maybe they are not exactly horizontal and vertical?
Tim
7.Oct.2006 1.03am
Hello Sebastian,
Thanks for the information. Hand tweaking the curves is possible, but I made an entire typeface like this... Because Fontographer has no problems with it I’m sure FontLab can do it also....
7.Oct.2006 1.07am
Hi Tim,
You’re right about the confusing picture, so I made new ones. The BCPs are exactly horizontal and vertical... I hope you have the answer to my problems. Thanks.
After :
7.Oct.2006 3.08am
Hmmmm, quite interesting. My guess is that FL somehow retains the existing nodes (they are in perfectly identical positions, right?). Then, because node positions are whole-numbered, it treats the two curves as identical up to the point where they diverge by more than one unit, hence the additional node.
The curves in shape(s) 2 are not visible in the final result anyway - what happens if you turn them into straights (select a BCP and delete it)? This would mean that the two shapes touch without overlap. In my experiance FL should still recognise this and join the shapes.
If this fails you could insert a node somewhere in the curves of shape 2 and then turn them into straight lines, leaving a triangular overlap.
Third attempt: make the curves of shape(s) 2 very shallow, i.e. retract the BCPs almost completely. This leaves an overlap but makes the curve “leave” the other one more rapidly.
Tim
7.Oct.2006 4.07am
Hi Tim,
Thanks for the tips.
The nodes are on an identical position and also the handles are.
I used your first tip (remove the curves in shape two) and it worked. I’m going to do this with all the other glyphs I designed this way. It still is strange that Fontlab can’t handle it right. Again, thanks for the tips.
Pieter
7.Oct.2006 4.35am
I decided to do the part in Fontographer because that program works fine. Still I think that this should be possible in FontLab also. So if someone knows how to do it in FontLab, please let me know. Thanks.
Pieter
9.Oct.2006 6.43am
Try putting the starting points somewhere else, that might do the trick..
9.Oct.2006 7.26am
Hello Toby,
It tried that already. Still the same result...
Pieter
9.Oct.2006 8.15am
Pieter,
What if you do ’FontAudit’ on your glyphs? I think it will notice that those nodes can be removed and it may gove you the option of ’change all’.
Or what about outline ’Optimization’?
Sebatstian
9.Oct.2006 1.21pm
Hello Sebastian,
Not only adds FontLab a node, but also the curves are changed. When I remove the node the curve is not the same as before. To do this on all the glyphs is very much work. I did the trick in Fontographer and it went fine. It’s strange that FontLabs can’t handle such an easy job.
Pieter
10.Oct.2006 1.09am
Pieter -
What happens if you join the shapes with Merge Contours and then while still selected, press it again? This will “clean” up shapes sometimes.
10.Oct.2006 2.04am
Hello Eric,
When I do that the ’new’ nodes will stay and the original nodes will be removed:
before:
merge contours 1:
merge contours 2:
The red arrow is pointing on the ’new’ node. That node has no horizontal handle so the curve is not smooth.
Pieter