Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 24, 2022 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/a90d8ce7a8034c76cbfc668250be7dbe to your computer and use it in GitHub Desktop.
Save lgolubyev/a90d8ce7a8034c76cbfc668250be7dbe to your computer and use it in GitHub Desktop.
namespace Preview11;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
});
return builder.Build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment