I need to make “Thin” versions of fonts for trial only. This means no features, partial character set, no language support etc.). The script must process hundreds of .otf font files, add the suffix “Trial” to the font name/file name.
I would consider a shell solution: glyphhanger could help with the subsetting, and for changing names and removing GPOS and GSUB tables, I would try fonttools.