Fixed an error in retrieving the font.