using Avalonia.Media; namespace Avalonia; public static class AppBuilderExtension { public static AppBuilder WithFont_LXGWWenKai(this AppBuilder appBuilder) { var uri = "avares://toast_mcl/Assets/Fonts/LXGWWenKai.ttf#LXGW WenKai"; return appBuilder.With(new FontManagerOptions() { DefaultFamilyName = uri, FontFallbacks = new[] { new FontFallback { FontFamily = new FontFamily(uri) } } }); } }