Update cursor position when the default font style is changed