From b9b4ca63602810729f3c3d91228832d843bc1209 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Thu, 20 Feb 2025 16:23:46 +0800 Subject: [PATCH] The desktop version use SemiFontFamilyRegular, Fall back to built-in fonts --- v2rayN/ServiceLib/Resx/ResUI.Designer.cs | 2 +- v2rayN/ServiceLib/Resx/ResUI.resx | 2 +- v2rayN/ServiceLib/Resx/ResUI.zh-Hans.resx | 2 +- v2rayN/ServiceLib/Resx/ResUI.zh-Hant.resx | 2 +- v2rayN/v2rayN.Desktop/Common/AppBuilderExtension.cs | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/v2rayN/ServiceLib/Resx/ResUI.Designer.cs b/v2rayN/ServiceLib/Resx/ResUI.Designer.cs index a2e97f10..66581eb1 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.Designer.cs +++ b/v2rayN/ServiceLib/Resx/ResUI.Designer.cs @@ -2879,7 +2879,7 @@ namespace ServiceLib.Resx { } /// - /// 查找类似 Install the font to the system and restart the settings 的本地化字符串。 + /// 查找类似 Install the font to the system, select or fill in the font name, restart the settings 的本地化字符串。 /// public static string TbSettingsCurrentFontFamilyLinuxTip { get { diff --git a/v2rayN/ServiceLib/Resx/ResUI.resx b/v2rayN/ServiceLib/Resx/ResUI.resx index 2c88c139..31f5d586 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.resx @@ -1334,7 +1334,7 @@ Please do not use the insecure HTTP protocol subscription address - Install the font to the system and restart the settings + Install the font to the system, select or fill in the font name, restart the settings Are you sure to exit? diff --git a/v2rayN/ServiceLib/Resx/ResUI.zh-Hans.resx b/v2rayN/ServiceLib/Resx/ResUI.zh-Hans.resx index e66cd020..c9a76989 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.zh-Hans.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.zh-Hans.resx @@ -1331,7 +1331,7 @@ 请不要使用不安全的HTTP协议订阅地址 - 安装字体到系统中,重启设置 + 安装字体到系统中,选择或填入字体名称,重启设置 是否确定退出? diff --git a/v2rayN/ServiceLib/Resx/ResUI.zh-Hant.resx b/v2rayN/ServiceLib/Resx/ResUI.zh-Hant.resx index d4a5b8e2..17a76a6b 100644 --- a/v2rayN/ServiceLib/Resx/ResUI.zh-Hant.resx +++ b/v2rayN/ServiceLib/Resx/ResUI.zh-Hant.resx @@ -1212,7 +1212,7 @@ 請不要使用不安全的HTTP協定訂閱位址 - 安裝字型到系統中,重新啟動設定 + 安裝字體到系統中,選擇或填入字體名稱,重新啟動設定 是否確定退出? diff --git a/v2rayN/v2rayN.Desktop/Common/AppBuilderExtension.cs b/v2rayN/v2rayN.Desktop/Common/AppBuilderExtension.cs index 13bbf1d1..36669ad0 100644 --- a/v2rayN/v2rayN.Desktop/Common/AppBuilderExtension.cs +++ b/v2rayN/v2rayN.Desktop/Common/AppBuilderExtension.cs @@ -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) } } }); } } -} \ No newline at end of file +}