fix some bug about font
retain database