Fixed #3501: correct a mistake that getContentSize returns wrong size when setFontSize or setFontName called.

Correct a mistake that getContentSize returns wrong size when setFontSize or setFontName called.