[Android] AddEmbeddedResourceFont Shows Exception Warning in Output Window #24017
Unanswered
BrundhaVelusamy
asked this question in
Q&A
Replies: 1 comment
-
I see these as well and they appear after calling ContentPage.InitializeComponent. In all cases, I see the following pattern, often multiple times for a page and multiple times for the same font. All fonts are defined as embedded resources under Resources\Fonts. Changing the location to Resources\Assets doesn't change the behavior.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
When registering a custom font as an embedded resource in a MAUI project, the following error appears in the output window when deploying on Android:
Reference sample:
MauiSampleApplication.zip
However, when we register the custom font as a MauiFont, this warning does not appear. What is the correct way to register custom fonts? Are there any restrictions if we change the MauiFont from Embedded Resources?
Beta Was this translation helpful? Give feedback.
All reactions