Can't generate OpenType font from FontLab

seths's picture

I am using FontLab 4.6 to create versions of existing OpenType fonts.
When attempting to generate the font files I am receiving the following error.

"ERROR: There was a problem while compiling OpenType font. Final .otf font is not saved. Please, check OpenType features definition for errors".

I receive this message even if I make no changes to the font.

Thanks

filip blazek's picture

Try to generate the font into another folder or with different file name. This happens when you test your fonts - the system sometimes locks the file even if it is not activated.

azeli's picture

Seth,
It happens when you have syntax error in OTF features. It can be virtually everywhere, so it is difficult to guess where it is exactly. But when you try to compile OTF features first, compiling stops on the first line with error and if you know OTF feature syntax, you will easily find it.
In my case it is typically missing semicolon at the end of line.

I bet you have tried to open an Adobe OTF in FL. There is a problem with frac feature because Adobe uses chaining contextual substitution (GSUB Type 6) like this:
sub [zero zero.taboldstyle]' [slash fraction]' [zero zero.taboldstyle]' [zero zero.taboldstyle]' by [perthousand perthousand];
which is (according to my knowledge) wrong (or at least it is not implemented in FL4.6).
You can get the same result using GSUB lookup type 4:
sub [zero zero.taboldstyle] [slash fraction] [zero zero.taboldstyle] [zero zero.taboldstyle] by perthousand;

Hope it helps.
Regards,
Pavel

Syndicate content Syndicate content