fix incorrect calculaion of natural size in text