Fix layout problems with center and right text alignment with text box

Pango layout width should be 6 points smaller than text width to account
for a 3 left and right margin.