# Names. Applications use a font's name to refer to it. This script
# checks that the subset of names for which this seems reasonable
# match between the old and new fonts.
+#
+# Vendor ID. At least some versions of GNU Emacs like to use the
+# OS/2.achVendID field to select fonts. So if that changes, Emacs
+# might not find your favourite font.
from argparse import ArgumentParser
from fontTools import ttLib
f"nameID={oldname.nameID}, platformID={oldname.platformID}, "
f"platEncID={oldname.platEncID}, langID={oldname.langID}")
+
+if ttold['OS/2'].achVendID != ttnew['OS/2'].achVendID:
+ fail("Vendor ID mismatch")
+
if failed:
exit(1)