The desktop version use SemiFontFamilyRegular, Fall back to built-in fonts

This commit is contained in:
2dust
2025-02-20 16:23:46 +08:00
parent 565697bc0b
commit b9b4ca6360
5 changed files with 7 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
using Avalonia;
using Avalonia;
using Avalonia.Media;
namespace v2rayN.Desktop.Common
@@ -10,9 +10,9 @@ namespace v2rayN.Desktop.Common
var uri = Path.Combine(Global.AvaAssets, "Fonts#Noto Sans SC");
return appBuilder.With(new FontManagerOptions()
{
DefaultFamilyName = uri,
//DefaultFamilyName = uri,
FontFallbacks = new[] { new FontFallback { FontFamily = new FontFamily(uri) } }
});
}
}
}
}