A small optimization for setting fonts in the text manager.