GSLayer.doAlignComponents() sets width to 0 for empty glyphs

Is this intentional?

That function request some checks before it can be run.

I don’t understand. What checks? If I run it in the macro panel, it simply sets the sidebearings to 0.

Or do you mean that the function should only be run after a certain set of checks? Is there some other way that I should be aligning components programmatically (in interpolated font objects at exports), which invokes this method after the checks pass?

The “doAlignComponents” method is called by the “alignComponents” method after it checks if it actually should “do” align. And that checks if there is anything to align. So it is kind of an internal method.
So you should check if it makes sense to run the function.

Thanks!