Improved mouse and font handling