refactored font loading