Size window to the surface size, and added an option for character padding.