Added comments for setTextWidthCalculator