center glyph

Center glyph contours by equalizing left and right margins.

RF4 RoboFont 3 code which does not need to change for RoboFont 4.

notes
  • Uses the font’s slant angle to center glyphs in oblique and italic fonts.
  • Supports centering across multiple layers using the layers selector.