def round_width(glyph, gridsize):
    _width = float(glyph.width) / gridsize
    glyph.width = round(_width) * gridsize
    glyph.update()
Round ``glyph.width`` to a multiple of ``gridsize``.
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/modules/glyphutils.py/round_width