extractor does not generate features.fea for OpenType features
All UFO files generated by extractor does not produce the Adobe OpenType Feature File features.fea according to UFO 3 specification. This will make the font lose all OpenType features when converting into UFO. (UFO export of FontForge did include features.fea.
Since this is using fontTools for binary OpenType font file, the feaLib can be used to accomplish the task. The main OpenType tables involved are GSUB, GPOS and GDEF.
Makes sense. feaLib didn't exist when this library was first written. PR?
I'm not sure how to add support for this.... 😅 There seem to be a library that does that though: https://github.com/simoncozens/fontFeatures
Think I got it working now. Actually VFB module does have feature in it which surprise me for a sec there. I used the same parameter name as that.
Thank you!
Just wondering, should we pass the do_gdef and doLookups paramms in fontFeatures unparse to the extractor function?
@benkiel , CC @simoncozens
Do not add all options fontFeatures offers to unparse, extractor just extracts from various formats to UFO.
@NightFurySL2001 Agree with @typemytype, for this you don't want the gdef and the default in fontFeatures is to do the lookups, which is what you want.
I'm looking at see if it may be possible to just use fontTools for this instead of importing another package, but for now this is good and needs nothing else.