jsmarcus / Iconize

Use icon fonts in your Xamarin.Forms application!
Other
204 stars 70 forks source link

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

Open ivoryguard opened 5 years ago

ivoryguard commented 5 years ago

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.

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.

cklenk commented 5 years ago

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

Swiftless commented 5 years ago

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.

angelru commented 5 years ago

The same issue on Android

I am also using Visual Studio 2019 and XF 4.1

IanLJohnson commented 5 years ago

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

conor-codes commented 5 years ago

Any update on this?

conor-codes commented 5 years ago

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.

TaaheroHiro commented 5 years ago

Hi any update with correcting this bug?

conor-codes commented 5 years ago

@TaaheroHiro Just use FontImageSource property instead.

meschi89 commented 4 years ago

@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.