fix: fix font issue in WASM demo.

This commit is contained in:
Zhang Dian 2024-11-15 17:01:48 +08:00
parent 5f199d728e
commit b31b622a2e
3 changed files with 1 additions and 1 deletions

View File

@ -11,6 +11,6 @@ public static class AvaloniaAppBuilderExtensions
builder.With(new FontManagerOptions
{
DefaultFamilyName = DefaultFontFamily,
FontFallbacks = new[] { new FontFallback { FontFamily = new FontFamily(DefaultFontFamily) } }
FontFallbacks = [new FontFallback { FontFamily = new FontFamily(DefaultFontFamily) }]
});
}