Modify change font function.