[Mac] Fix sizing issue when changing the font of a widget