change font loading logic