Fontawesome, Font not found until it's selected
Posted: 10 Jun 2020, 18:42
Hello,
I start a new project in which I use Fontawesome to display some icons.
I add the followinf resource into my MainWindow.xaml (because in the App.xaml the StaticResource is not found):
When I launch the scene , the font is not found, and the scene don't display the right icon.
But if I click on the "fa-solid-900.asset" to select it into the Unity UI, then launch the scene, it shows me the right icon. (but the error "not found" still here)
I start a new project in which I use Fontawesome to display some icons.
I add the followinf resource into my MainWindow.xaml (because in the App.xaml the StaticResource is not found):
Code: Select all
<ResourceDictionary>
<FontFamily x:Key="FontAwesome">../Fonts/fa-solid-900.ttf#Font Awesome 5 Free</FontFamily>
</ResourceDictionary>
But if I click on the "fa-solid-900.asset" to select it into the Unity UI, then launch the scene, it shows me the right icon. (but the error "not found" still here)