Fixed a bug with font setting.