Changed custom font loading to be compatible with Android.