Statistiques
| Branche: | Révision:

rfid-cb / CodeBarreRFID / MauiProgram.cs @ 0f2b4298

Historique | Voir | Annoter | Télécharger (908 octets)

1 0f2b4298 ajournaux
using CommunityToolkit.Maui;
2
using Microsoft.Extensions.Logging;
3
4
namespace CodeBarreRFID
5
{
6
    public static class MauiProgram
7
    {
8
        public static MauiApp CreateMauiApp()
9
        {
10
            var builder = MauiApp.CreateBuilder();
11
            builder
12
                .UseMauiApp<App>()
13
                .UseMauiCommunityToolkit()
14
                .ConfigureFonts(fonts =>
15
                {
16
                    fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
17
                    fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
18
                    fonts.AddFont("fa-brands.ttf", "FABrands");
19
                    fonts.AddFont("fa-regular.ttf", "FARegular");
20
                    fonts.AddFont("fa-solid.ttf", "FASolid");
21
                });
22
23
#if DEBUG
24
    		builder.Logging.AddDebug();
25
#endif
26
27
            return builder.Build();
28
        }
29
    }
30
}