Closed ChrisK91 closed 4 months ago
@ChrisK91 Can you try adding UseMauiMaterialIcon Extension after Configure Fonts like below example? I assume Configure Fonts Method Causing this issue
builder.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
})
.UseMaterialMauiIcons();
Thanks for your fast reply @AathifMahir ! I changed the order, without any success. I also tried loading/including the font myself, without any success. It seems like quite an obscure error, an internet search has not yet resulted in any solutions for me.
Thanks for your fast reply @AathifMahir ! I changed the order, without any success. I also tried loading/including the font myself, without any success. It seems like quite an obscure error, an internet search has not yet resulted in any solutions for me.
I'll try my best to reproduce this issue as soon as possible. Additionally can you try to reproduce this issue on Android as well using Emulator or Real Device.
I'll look into that. Currently my local debugging for android is not working, because my user directory contains a space... I'll see if I can work around that.
Edit: I've got it to work on Android, where the icon is displayed without issues. So it seems to be related to Windows.
I'll look into that. Currently my local debugging for android is not working, because my user directory contains a space... I'll see if I can work around that.
Edit: I've got it to work on Android, where the icon is displayed without issues. So it seems to be related to Windows.
The problem here, I can't reproduce this on Windows or Android or any other platforms? As far I can see from the error logs you have submitted. I assume it has to do with Maui SDK, I think something went wrong with the installation or completely something else that we are yet to diagnose
@ChrisK91 I have closed this issue since there's no activity on this,if your still facing the same issue, feel free comment on this issue for further discussion or reopening
The problem still exists, however I'm currently working around it by embedding the relevant icons as SVGs directly. It might be related to dotnet or maui itself. I'll see if one of the framework updates fixes it in the future. Thanks for your help!
The problem still exists, however I'm currently working around it by embedding the relevant icons as SVGs directly. It might be related to dotnet or maui itself. I'll see if one of the framework updates fixes it in the future. Thanks for your help!
I'm not sure, if it is related to Maui Itself. I can't seem to reproduce this issue at all with various different Maui Version.
Did you tried reinstalling Maui Workload?
I just did a complete reinstallation of the dotnet sdk and maui, without any changes. I will report back, if anything changes with a future update.
I have same issue using new version 2.2.5. When I downgraded 2.1.5, works fine. I'm using MAUI CommunityToolkit (latest version).
I have same issue using new version 2.2.5. When I downgraded 2.1.5, works fine. I'm using MAUI CommunityToolkit (latest version).
The problem here is, I can't seem to reproduce this issue whatsoever, I have been trying different Maui Version and etc.. still everything works 🤔
Are you running Windows 10? Maybe it's an issue with the Windows version.
Are you running Windows 10? Maybe it's an issue with the Windows version.
I'm on Windows 11
Describe the bug I'm trying to use the package on a new MAUI app. Using the package even a completely blank MAUI.
Several errors are logged, the first one being
When trying to render the page, errors regarding the missing font are logged:
To Reproduce
Add
<PackageReference Include="AathifMahir.Maui.MauiIcons.Material" Version="2.1.5" />
, which then looks like this:Expected behavior Icon should load
Screenshots If applicable, add screenshots to help explain your problem.
Desktop and Smartphone (please complete the following information):
Additional context I've tried adding the ttf into the resource folder as well, without any success