Hello,
This is a bug specific to unpackaged distributions. You can refer to the known thread in github for a solution or wait for the development team to fix it.
This is a workaround for apps that are experiencing this:
#if WINDOWS Microsoft.Maui.Handlers.LabelHandler.Mapper.AppendToMapping("FontFamily", (handler, element) => { if (element.Font.Family == "FontAwesome") { const string FontAwesomeFamily = "ms-appx:///Fontawesome6brands.otf#Font Awesome 6 Brands"; handler.PlatformView.FontFamily = new Microsoft.UI.Xaml.Media.FontFamily(FontAwesomeFamily); } }); #endif
I am looking into why this is happening as the code is the same and should produce the same result packaged/unpackaged...
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.