Fix text metrics