Fit a rectangle around text