1 implementation of IFontManager
Microsoft.Maui (1)
Fonts\FontManager.Standard.cs (1)
7
public class FontManager :
IFontManager
9 references to IFontManager
Microsoft.Maui (5)
Hosting\Fonts\FontsMauiAppBuilderExtensions.cs (1)
33
builder.Services.TryAddSingleton<
IFontManager
>(svc => new FontManager(svc.GetRequiredService<IFontRegistrar>(), svc));
Hosting\ImageSources\ImageSourcesMauiAppBuilderExtensions.cs (1)
17
services.AddService<IFontImageSource>(svcs => new FontImageSourceService(svcs.GetRequiredService<
IFontManager
>(), svcs.CreateLogger<FontImageSourceService>()));
ImageSources\FontImageSourceService\FontImageSourceService.cs (3)
8
public FontImageSourceService(
IFontManager
fontManager)
13
public FontImageSourceService(
IFontManager
fontManager, ILogger<FontImageSourceService>? logger = null)
19
public
IFontManager
FontManager { get; }
Microsoft.Maui.Controls (4)
Hosting\AppHostBuilderExtensions.cs (1)
227
services.AddService<FontImageSource>(svcs => new FontImageSourceService(svcs.GetRequiredService<
IFontManager
>(), svcs.CreateLogger<FontImageSourceService>()));
ViewExtensions.cs (3)
324
internal static
IFontManager
RequireFontManager(this Element element, bool fallbackToAppMauiContext = false)
325
=> element.RequireMauiContext(fallbackToAppMauiContext).Services.GetRequiredService<
IFontManager
>();
328
=> element.FindMauiContext()?.Services?.GetService<
IFontManager
>()?.DefaultFontSize ?? 0d;