Placing components on a grid

Is there an easy way to situate components on a definable grid? As in arranging letters like so (where the asterisk shape is a hypothetical glyph used as multiple components):

 *** 
*   *
*****
*   *
*   *

From Mekkablue scripts:

Pixelate: Replaces outlines with pixel components and optionally resets width to to pixel grid. Needs Vanilla

Thanks, that video helps!
I’m confused about what the Pixelate script does–the “Insert Pixels” button is grayed out on my computer.

You need to create a glyphs with a name (by default pixel) and that name should appears in pixel component name. In other words, write the name of the glyph that is going to work as the “pixel” in “pixel component name”.

Got it working now. Thanks!