mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-19 21:52:25 +00:00
18 lines
538 B
C#
18 lines
538 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#Segoe UI Emoji");
|
|
return appBuilder.With(new FontManagerOptions()
|
|
{
|
|
DefaultFamilyName = uri,
|
|
FontFallbacks = new[] { new FontFallback { FontFamily = new FontFamily(uri) } }
|
|
});
|
|
}
|
|
}
|
|
}
|