Fixed an instantiation of a font outside document scope