Fixes to text rendering in title bar

Most importantly: textnw() did not take the title font into account.