Fixed an issue where the font was not properly set when opening a new text editor document