v2rayN/v2rayN/v2rayN.Desktop/Common/AppBuilderExtension.cs
2dust 53a99e3f79
Some checks failed
release macos / build (Release) (push) Has been cancelled
release / build (Release) (push) Has been cancelled
Remove part System.Reflection
2024-12-08 11:11:06 +08:00

18 lines
No EOL
535 B
C#

using Avalonia;
using Avalonia.Media;
namespace v2rayN.Desktop.Common
{
public static class AppBuilderExtension
{
public static AppBuilder WithFontByDefault(this AppBuilder appBuilder)
{
var uri = Path.Combine(Global.AvaAssets, "Fonts#Noto Sans SC");
return appBuilder.With(new FontManagerOptions()
{
DefaultFamilyName = uri,
FontFallbacks = new[] { new FontFallback { FontFamily = new FontFamily(uri) } }
});
}
}
}