2025-04-02 03:44:23 +00:00
|
|
|
namespace v2rayN.Desktop.Common;
|
|
|
|
|
|
|
|
|
|
public static class AppBuilderExtension
|
2024-11-06 06:52:54 +00:00
|
|
|
{
|
2025-04-02 03:44:23 +00:00
|
|
|
public static AppBuilder WithFontByDefault(this AppBuilder appBuilder)
|
2024-11-06 06:52:54 +00:00
|
|
|
{
|
2025-04-02 03:44:23 +00:00
|
|
|
var uri = Path.Combine(Global.AvaAssets, "Fonts#Noto Sans SC");
|
|
|
|
|
return appBuilder.With(new FontManagerOptions()
|
2024-11-06 06:52:54 +00:00
|
|
|
{
|
2025-04-02 03:44:23 +00:00
|
|
|
//DefaultFamilyName = uri,
|
|
|
|
|
FontFallbacks = new[] { new FontFallback { FontFamily = new FontFamily(uri) } }
|
|
|
|
|
});
|
2024-11-06 06:52:54 +00:00
|
|
|
}
|
2025-02-20 08:23:46 +00:00
|
|
|
}
|