I don't know if I understood correctly that you want to scale all these shown values. Because just changing those two (sTypoLineGap in the OS2 table and lineGap in the hhea table) is unlikely to work, or at least I haven't seen any difference.
In addition, the code now changes the internal name of the font by adding a scale to it, which is very useful for choosing your favorite spacing.
The attached code scales all the elements you mentioned.
|