Пример #1
0
 public static bool TryGetFont(this IFontRegistrar fontRegistrar, string font, out string?fontPath)
 {
     var(hasFont, foundFontPath) = fontRegistrar.HasFont(font);
     if (hasFont)
     {
         fontPath = foundFontPath !;
     }
     else
     {
         fontPath = null;
     }
     return(hasFont);
 }
Пример #2
0
 public FontManager(IFontRegistrar fontRegistrar, IServiceProvider?serviceProvider = null)
 {
 }
 public FontInitializer(IEnumerable <FontsRegistration> fontsRegistrations, IFontRegistrar fontRegistrar)
 {
     _fontsRegistrations = fontsRegistrations;
     _fontRegistrar      = fontRegistrar;
 }
Пример #4
0
 public FontManager(IFontRegistrar fontRegistrar, ILogger <FontManager>?logger = null)
 {
 }
Пример #5
0
 public FontManager(IFontRegistrar fontRegistrar)
 {
 }
Пример #6
0
 public static IFontCollection AddCompatibilityFonts(this IFontCollection fontCollection, IFontRegistrar fontRegistrar, params global::System.Reflection.Assembly[] assemblies)
 {
     Hosting.MauiAppBuilderExtensions.CheckForCompatibility();
     Internals.Registrar.RegisterAll(
         assemblies,
         null,
         new[]
     {
         typeof(ExportFontAttribute)
     }, default(InitializationFlags),
         null,
         fontRegistrar);
     return(fontCollection);
 }
Пример #7
0
 public FontManager(IFontRegistrar fontRegistrar)
 {
     _fontRegistrar = fontRegistrar;
 }