Can't compile OpenType features

alan's picture

I've done this a hundred times before, I have no idea why it's not working. I have a regular PostScript font, which has some extra, non-standard characters. I've added some very basic OT features, and when I compile them, it either tells me that something wasn't expected and it's aborting because of errors, or it doesn't give me anything at all in the Output window, but the features don't compile.

Right now, I'm working with a font that has a single kerning pair defined in the OT panel. I can't get it to compile. No features with a checkbox show up in the OT preview panel. I'm starting to get really impatient and I wouldn't want to have to do something irresponsible, what with the election already ruining the week/year.

Someone please help, I'm getting desperate!

Many many thanks,
Alan

alan's picture

Oh, and by the way, this is in FontLab.

alan's picture

Third time's the charm: it's working now, but in a really strange way.

I had to add more features in the OT panel for it to preview correctly in the OT preview panel. After compiling, checking features, and saving, I re-open the font to find that the features have all been scrambled. The kern feature has been smashed into the liga feature definition.

Oddly enough, when I compile and test the fonts, they work! I've attached a picture of what my two (was three before I closed and opened the font) features look like. Strange stuff.

Alan

Screenshot of OT features being re-arranged

jfp's picture

Adobe OT FDK + FL Mac (specially) have some problems with handling of line breaks on OT panels. There is a mixture of various kind and sometime, it happen :-(

There is not perfect solution to that. Open the bad features file in text editor and compare to good features file and try to bring it back when its correct.

eolson's picture

Alan -

I feel you on the election/OT blues. I've been sailing the same ship lately.

As I'm sure you know, this problem could be any number of things but
recently I've found that if I make even the slightest change to one
of my classes the OT code will jumble as in your screen grab.

Or, as JFP points, line breaks can cause the same thing. I've found
even extra spaces after lines of code can cause the jumbles.

Or, even a third, can be the voodoo of the "Add all glyph classes to OpenType
feature definition code" option under the Prefs panel. I might be insane
but I swear that things turns on and off by itself.

Hopefully some of this helps. When you get the features to work, save
the file in a guarded vault.

alan's picture

Thanks for the tips. It's just that I've never seen this happen before, so it caught me off guard.

Syndicate content Syndicate content