[DF-3867] Fixed Calculating of text size.