[Font] Improve test and refactor