Issue
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):
Solution
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
Answered By - nevermore
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.