refactoring typeface variable