A quick bit of necromancy to mention that some/most of this should also be doable via fontTools/
gftools, if @sherman or anyone else were to want to take this up again.
This might be a cleaner/faster/less destructive/easier to embed approach than fontforge

.
At a quick glance,
fix-vertical-metrics can be used to tweak linegaps & other vertical metrics (yum, my favorites! ;D), while
nametable-from-filename will deal with most of the OS/2 & TTF Names tables family/weight/style issues.
That mainly leaves the Panose stuff,
list-panose should be a good start, but I'm pretty sure with a little bit of digging someone's already written something that can deal with it via fontTools.
(This was brought on by today's various shenanigans when testing Literata 3

).