Typophile

Hustle with merging contours in FontLab

Fabian Dornhecker0 votes

Hello everybody!
First i hope i didn't overlook a specific topic where my question would fit better than in "general discussions".
I have another "random" bug in FontLab i don't know how to deal with: I drew a font with 2 axes (4 masters) and before generating want to flatten all glyphs (means "merge contours"). But if i do so, the merged contour from e.g. master 1 will be applied to all other masters, which means i would have to draw these again. Also, this error applies randomly to some glyphs who don't even have 2 or more separate forms that could be merged.
In an older project file this all works fine, so i really have no guess what this is about — has anyone of you ever dealt with this bug or some suggestions to fix it?
Thanks in advance and have a nice sunday!

So, the short answer is, that won't work very well, for exactly the reason you describe. It's not a bug, it has to do with how MM fonts work. (FontLab VI deals with this a bit differently, but still, not something you want to do, normally/)
There are two possible answers:
- if you are going to make separate fonts, then remove overlap as part of your font-output routine AFTER you generate the instances. Generate instances, then remove overlap.
- if your ultimate output is variable fonts, then don't remove overlap. That's the whole reason variable fonts allow overlapping paths, because the consequences of overlap removal can be really problematic for your shapes.

Hey Thomas,
thank you for your response — removing overlap in the generated instances is a brilliant idea and should work for me!
Still i'm confused about the mechanics cause sometimes merging contours in the mm-file worked with obtaining all specific master instances. Is there anything besides the official manual to get some information about the mm-mechanics?

Well, you can ask questions... our user forums (https://forum.fontlab.com) are good for that. This place seems to have no spam controls, a shame for a once-amazing typographic forum. :(

Captured from web.archive.org on 21 Sep 2019. view this capture