Skip to content

Commit 478f2af

Browse files
Return the font manager
1 parent a3038d6 commit 478f2af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

maui/src/Charts/Utils/ChartUtils.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ internal static double ConvertToDouble(object? val)
8484
return handler.GetFontManager();
8585
}
8686

87+
if (IPlatformApplication.Current != null)
88+
{
89+
return IPlatformApplication.Current.Services.GetRequiredService<IFontManager>();
90+
}
91+
8792
return default;
8893
}
8994

0 commit comments

Comments
 (0)