Only take printable characters into account in text height calculation