Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ivoryguard opened this issue Jul 10, 2019 · 9 comments
Open

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

ivoryguard opened this issue Jul 10, 2019 · 9 comments

Comments

@ivoryguard
Copy link

ivoryguard commented Jul 10, 2019

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.

@cklenk
Copy link

cklenk commented Jul 29, 2019

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

@Swiftless
Copy link

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
Copy link

angelru commented Aug 10, 2019

The same issue on Android

I am also using Visual Studio 2019 and XF 4.1

@IanLJohnson
Copy link

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
Copy link

Any update on this?

@conor-codes
Copy link

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
Copy link

Hi any update with correcting this bug?

@conor-codes
Copy link

@TaaheroHiro Just use FontImageSource property instead.

@meschi89
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants