Add a 2-pixel margin to the right side of a TextShape object.

This change adds 2-pixel margins to the right side and the bottom side to prevent text from being clipped.