Calculator of text width.