AathifMahir / MauiIcons

MauiIcons is Icon Collection Library for .Net Maui
MIT License
197 stars 13 forks source link

Font asset not found exception on startup #116

Open adospace opened 3 weeks ago

adospace commented 3 weeks ago

Describe the bug After setting up Fluent icons an exception is raised at startup: java.lang.RuntimeException: Font asset not found /data/user/0/com.companyname.mauiapp28/cache/Fluent_Icons_Regular.ttf at android.graphics.Typeface.createFromAsset(Typeface.java:1061)

even if the icons are correctly displayed.

To Reproduce Steps to reproduce the behavior:

  1. Create a brand new MAUI project
  2. Setup Fluent Maui Icons
  3. Show an icon on the page
  4. An internal exception is raised

Expected behavior No exception should be raised

Screenshots image

Desktop and Smartphone (please complete the following information):

Additional context Attached sample project the reproduce the issue MauiApp28.zip

AathifMahir commented 3 weeks ago

Seems like an Issue with Maui Itself https://github.com/dotnet/maui/issues/24059

Will look into this further to figure out, if the issue is only from Maui or also Both the MauiIcons and Maui Causing it