fix setting a default font issue in wrong cases

No match.