fixes for custom font loading