I'm generating a .otf font from FontLab with a MetricsMachine .fea file I've imported. It works in the OpenType Preview panel as a feature, works fine, all kerning is present but when I generate an .otf for testing somehow the kerning isn't included (I've opened the generated .otf back into FontLab and it includes no kerning of any kind).
I'm used to generating .otf font files with FontLab group kerning which includes the OpenType kern feature, but this is different.
Any reason why this could be happening? The font has other OpenType features which should trigger the kern feature to work, and I've tried different Preference options like 'Export old-style non-OpenType "kern" table' and still nothing is working. No compiling errors either. Not sure why it's being so difficult.
Comments
(Frankly, I'm a little rusty when it comes to working and generating fonts with FontLab. I haven't done it routinely since early last year.)
It would just import the kerning from the MM's UFO (using the script), then Tools > Kerning Assistance > Update [kern] feature and then generate the font with the option Generate OpenType "kern" feature activated. If it does not work, I would just look for mistakes in the classes.
Where it's really strange is I have the 'Regular' weight .vfb that has only the OpenType kerning feature in question among the other features and if I export an .otf it is fine the kerning shows even with the Preferences like Paul suggests above.
Now if I duplicate that .vfb and change the naming metadata to 'Thin' and export an .otf I can access this new 'Thin' weight (even though it's really just all the Regular weight glyphs, only naming has changed) and the kerning shows up.
If I cut and paste all the glyphs from the actual 'Thin' .vfb into the latter .vfb (so the font will actually have the Thin weight glyphs) I get a 'Current font contains original OpenType tables. If you continue with the operation this data will be removed'. When I do this and export a .otf the kerning is gone and all the OpenType features are gone even though they are still there in the .vfb OpenType panel (along with all the relevant kerning and opentype classes in the classes panel) and compiling the OpenType features works with no errors and kerning shows up in the OpenType Preview panel. It just disappears when generating an .otf which I don't get?
I've never experienced this before.
With my Thin weight it has all the same features as Regular, and uses the same kerning, but even exporting the kerning from MetricsMachine and 'inserting in font' the kerning won't show up in the preview panel and won't show up when the font is generated.
In general as well with Robofont I can't get the kerning to work if it is actually inserted in the OpenType feature panel in Robofont. It only works if it's 'inserted into font' from MetricsMachine, leaving the other OT features separate in the OpenType feature panel.
It really seems it would be as simple as cutting/pasting these features, but it's not working like that.
I also wanted to stop exporting the old non-OpenType kerning tables and just use the pure OpenType kern feature. Trying not to use the FontLab MetricsMachine exchange macro because I don't want to worry about key glyphs and want to be free from any FontLab restraint and just work with the OpenType .fea file instead.
I tried another test, duplicated regular.ufo which works fine on all levels, renamed it thin.ufo, opened it in Robofont all the kerning features etc. check out all looks good.
Went in, changed the naming to update to 'Thin', opened an earlier version of Thin simply to get all the thin glyphs, cut and paste all the thin glyphs.
At this point for all intents and purposes my thin.ufo is the exact same as the working regular.ufo except the naming and glyphs are updated. Kerning and features still show they are working in the preview panels etc.
Once I generate an .otf though in testing none of the OpenType features or kerning show up or are active.