Is there any Python script to copy the two sidebearings and width from base glyphs to their components?
You can do this in FontLab with the Paste Special command. Select the base glyph in the font window and Copy. Then select all the component glyphs and select Edit > Paste Special and choose Left Sidebearing, Right Sidebearing, and Adv. Width from the dialog.
Note: you may want to check the Use Measurement Line While Copying Sidebearings option at the bottom if you have diacritics that extend horizontally beyond the base glyph (and set your measurement line somewhere in a “safe” zone beforehand, obviously).
Of course, if you have a large number of glyphs that you want to operate upon, then a Python script will work better, and I’m sure someone has probably written one.
Captured from web.archive.org on 25 Jul 2014. view this capture