Fix text size calculation in gdifont