Fix text measurement for titleFormatter