mirror of https://github.com/2dust/v2rayN
The desktop version use SemiFontFamilyRegular, Fall back to built-in fonts
parent
565697bc0b
commit
b9b4ca6360
|
@ -2879,7 +2879,7 @@ namespace ServiceLib.Resx {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查找类似 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 的本地化字符串。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string TbSettingsCurrentFontFamilyLinuxTip {
|
public static string TbSettingsCurrentFontFamilyLinuxTip {
|
||||||
get {
|
get {
|
||||||
|
|
|
@ -1334,7 +1334,7 @@
|
||||||
<value>Please do not use the insecure HTTP protocol subscription address</value>
|
<value>Please do not use the insecure HTTP protocol subscription address</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="TbSettingsCurrentFontFamilyLinuxTip" xml:space="preserve">
|
<data name="TbSettingsCurrentFontFamilyLinuxTip" xml:space="preserve">
|
||||||
<value>Install the font to the system and restart the settings</value>
|
<value>Install the font to the system, select or fill in the font name, restart the settings</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="menuExitTips" xml:space="preserve">
|
<data name="menuExitTips" xml:space="preserve">
|
||||||
<value>Are you sure to exit?</value>
|
<value>Are you sure to exit?</value>
|
||||||
|
|
|
@ -1331,7 +1331,7 @@
|
||||||
<value>请不要使用不安全的HTTP协议订阅地址</value>
|
<value>请不要使用不安全的HTTP协议订阅地址</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="TbSettingsCurrentFontFamilyLinuxTip" xml:space="preserve">
|
<data name="TbSettingsCurrentFontFamilyLinuxTip" xml:space="preserve">
|
||||||
<value>安装字体到系统中,重启设置</value>
|
<value>安装字体到系统中,选择或填入字体名称,重启设置</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="menuExitTips" xml:space="preserve">
|
<data name="menuExitTips" xml:space="preserve">
|
||||||
<value>是否确定退出?</value>
|
<value>是否确定退出?</value>
|
||||||
|
|
|
@ -1212,7 +1212,7 @@
|
||||||
<value>請不要使用不安全的HTTP協定訂閱位址</value>
|
<value>請不要使用不安全的HTTP協定訂閱位址</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="TbSettingsCurrentFontFamilyLinuxTip" xml:space="preserve">
|
<data name="TbSettingsCurrentFontFamilyLinuxTip" xml:space="preserve">
|
||||||
<value>安裝字型到系統中,重新啟動設定</value>
|
<value>安裝字體到系統中,選擇或填入字體名稱,重新啟動設定</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="menuExitTips" xml:space="preserve">
|
<data name="menuExitTips" xml:space="preserve">
|
||||||
<value>是否確定退出?</value>
|
<value>是否確定退出?</value>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using Avalonia;
|
using Avalonia;
|
||||||
using Avalonia.Media;
|
using Avalonia.Media;
|
||||||
|
|
||||||
namespace v2rayN.Desktop.Common
|
namespace v2rayN.Desktop.Common
|
||||||
|
@ -10,9 +10,9 @@ namespace v2rayN.Desktop.Common
|
||||||
var uri = Path.Combine(Global.AvaAssets, "Fonts#Noto Sans SC");
|
var uri = Path.Combine(Global.AvaAssets, "Fonts#Noto Sans SC");
|
||||||
return appBuilder.With(new FontManagerOptions()
|
return appBuilder.With(new FontManagerOptions()
|
||||||
{
|
{
|
||||||
DefaultFamilyName = uri,
|
//DefaultFamilyName = uri,
|
||||||
FontFallbacks = new[] { new FontFallback { FontFamily = new FontFamily(uri) } }
|
FontFallbacks = new[] { new FontFallback { FontFamily = new FontFamily(uri) } }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue