fix punctuation width calculation