New function width_of_m to get the width of M rendered in a widget.