public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder.UseMauiApp<App>()
.ConfigureEffects(
effects =>
{
})
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
fonts.AddFont("NunitoSans-Bold.ttf", "NunitoSansBold");
fonts.AddFont("NunitoSans-ExtraLight.ttf", "NunitoSansExtraLight");
fonts.AddFont("NunitoSans-Regular.ttf", "NunitoSansRegular");
fonts.AddFont("Nunito-SemiBold.ttf", "NunitoSemiBold");
})
.UseMauiCommunityToolkit();
return builder.Build();
}
} |