brew install fonttools
Put two fonts in a folder, e.g.
- MiSansLatin.ttf
- MiSansThai.ttf
pyftmerge MiSansLatin.ttf MiSansThai.ttf
ttx merged.ttf
This creates a merged.ttx (XML). Open it, find the entries (IDs 1, 4, 6 are most important: font family, full name, PostScript name), and replace them with "MiSans".
Then rebuild:
ttx merged.ttx
You now get merged#1.ttf with the corrected name.