Refactored fonts manager to handle different permutations of opening/closing documents and changing font settings