textbox: get the font_width on the fly

If the user changed the font on the fly, this commit makes caret right.

Thanks to hexlog for providing the patch.

Github-hook: fix #35