2 implementations of IFontRegistrar
Microsoft.Maui (2)
Fonts\FontRegistrar.cs (1)
11 public partial class FontRegistrar : IFontRegistrar
Fonts\FontRegistrar.Standard.cs (1)
6 public partial class FontRegistrar : IFontRegistrar
13 references to IFontRegistrar
Microsoft.Maui (8)
Fonts\FontManager.Standard.cs (2)
15 /// <param name="fontRegistrar">A <see cref="IFontRegistrar"/> instance to retrieve details from about registered fonts.</param> 18 public FontManager(IFontRegistrar fontRegistrar, IServiceProvider? serviceProvider = null)
Fonts\FontRegistrar.cs (1)
10 /// <inheritdoc cref="IFontRegistrar"/>
Fonts\IFontRegistrar.cs (1)
7 /// The <see cref="IFontRegistrar"/> keeps track of the fonts that are registered in our application.
Hosting\Fonts\FontsMauiAppBuilderExtensions.cs (4)
32 builder.Services.TryAddSingleton<IFontRegistrar>(svc => new FontRegistrar(svc.GetRequiredService<IEmbeddedFontLoader>(), svc)); 33 builder.Services.TryAddSingleton<IFontManager>(svc => new FontManager(svc.GetRequiredService<IFontRegistrar>(), svc)); 61 readonly IFontRegistrar _fontRegistrar; 63 public FontInitializer(IEnumerable<FontsRegistration> fontsRegistrations, IFontRegistrar fontRegistrar)
Microsoft.Maui.Controls (4)
Registrar.cs (4)
420 public static void RegisterAll(Type[] attrTypes, IFontRegistrar fontRegistrar = null) 429 public static void RegisterAll(Type[] attrTypes, InitializationFlags flags, IFontRegistrar fontRegistrar = null) 447 IFontRegistrar fontRegistrar = null) 465 fontRegistrar = Application.Current?.FindMauiContext()?.Services?.GetService<IFontRegistrar>();
Microsoft.Maui.Controls.Compatibility (1)
MauiHandlersCollectionExtensions.cs (1)
90 public static IFontCollection AddCompatibilityFonts(this IFontCollection fontCollection, IFontRegistrar fontRegistrar, params global::System.Reflection.Assembly[] assemblies)