fix: fix font issue in WASM demo.

(cherry picked from commit b31b622a2e30e58910390cb1524c4a15d98e3702)
This commit is contained in:
Zhang Dian 2024-11-15 17:01:48 +08:00
parent 8e88f79c90
commit c30f8d2456
3 changed files with 1 additions and 1 deletions

View File

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