Solution 1 :
-
You miss a “#” after
Android=ionicons.ttf
:<Image> <Image.Source> <FontImageSource FontFamily="{OnPlatform iOS=Ionicons,Android=ionicons.ttf#}" Glyph="" Size="44" Color="Red" /> </Image.Source> </Image>
-
I don’t think there is a icon font named
f37f
in the ionicons
Problem :
I am trying to add a font icon using the following code:
<Image>
<Image.Source>
<FontImageSource
FontFamily="{OnPlatform iOS=Ionicons,
Android=ionicons.ttf#}"
Glyph=""
Size="44"
Color="Red" />
</Image.Source>
</Image>
which I found on the official Microsoft Docs. However, the icon doesn’t show up on my Android phone, instead I get this (symbol not found placeholder):
Comments
Comment posted by ionicons.com/v2/cheatsheet.html
1. It doesn’t work even with the #; 2.
Comment posted by nevermore
Where does your ionicons.ttf file comes from? Are you sure it is the same as the v2.0.0 you referred in the link? I test other icons and it all work well with #,=.
Comment posted by csstudent1418
Good question sir, for some reason I thought it was already present on the android system, so I didn’t put it in my Assets folder. Now I did and it works, thanks!