Iconize icon indicating copy to clipboard operation
Iconize copied to clipboard

Font Awesome Solid Icons of v3.5.0.129 are not shown at Android.

Open ivoryguard opened this issue 5 years ago • 9 comments

Hello. I have an issue for Font Awesome Solid Icons.

For examples, the following icon is displayed at iOS only and is not shown at Android.

<iconize:IconButton Text="fas-play" WidthRequest="40" HeightRequest="40" TextColor="White" HorizontalOptions="Center"/>

FAS works at Iconize GitHub sample, but it does not work at my project. FAS works well at iOS because iOS platform project has font file itself. Font Awesome Regular Module Icons (FAR) v3.5.0.129 work well at both Android and iOS. Therefore, it is not a configuration issue of my project.

Finally, I found that Iconize GitHub sample used 3.5.0.112 and my project uses 3.5.0.129. So, I suspect that it must be an issue of v3.5.0.129 on Android.

My environment: Visual Studio 2019 Xamarin Forms 4.1 latest stable Iconize 3.5.0.129

Best regards.

ivoryguard avatar Jul 10 '19 07:07 ivoryguard

I too had to downgrade to 3.5.0.123 and it worked again for me on Android.

cklenk avatar Jul 29 '19 21:07 cklenk

Can confirm that on Android - Font Awesome Solid fonts no longer display while Regular fonts do.

I am also using Visual Studio 2019 and Xamarin Forms 4.1.

Yet to try iOS.

Swiftless avatar Jul 31 '19 07:07 Swiftless

The same issue on Android

I am also using Visual Studio 2019 and XF 4.1

angelru avatar Aug 10 '19 18:08 angelru

I can confirm this issue. I believe it is because iconize-fontawesome-solid.ttf is a copy of iconize-fontawesome-brands.ttf in 3.5.0.129. Both files have Font Awesome 5 Brands Regular as Font name. Looks like a mistake

IanLJohnson avatar Aug 15 '19 14:08 IanLJohnson

Any update on this?

conor-codes avatar Sep 28 '19 17:09 conor-codes

If anyone is still looking for a fix for this, you can revert back to the normal tabbed page as Xamarin Forms 4 offers FontImageSupport now. This can be set to the tabs IconImageSource.

All you need to do is set the FontImageSupport object's font family to the FontAwsomeSolid.ttf (You will have to add this in yourself) and then set the glyph property which can be found on all the icons on the website.

It's explained in here: https://montemagno.com/using-font-icons-in-xamarin-forms-goodbye-images-hello-fonts/. I can confirm the tab icons are loading with this.

conor-codes avatar Oct 04 '19 09:10 conor-codes

Hi any update with correcting this bug?

TaaheroHiro avatar Nov 11 '19 13:11 TaaheroHiro

@TaaheroHiro Just use FontImageSource property instead.

conor-codes avatar Nov 22 '19 16:11 conor-codes

@jsmarcus Is it possible, that you fix this? I have a very bad feeling, if I use a nuget package where the newest version is not working.

meschi89 avatar Oct 30 '20 13:10 meschi89