Fix BaseTextFromat issue with height and width