Working with text metrics