Replace the font with Source Han Sans CN

This commit is contained in:
2dust 2023-01-31 13:34:32 +08:00
parent 84b91e9649
commit 8ba05cb4ed
4 changed files with 4 additions and 1 deletions

View file

@ -11,7 +11,7 @@ namespace v2rayN.Converters
static MaterialDesignFonts()
{
var fontPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Resources\Fonts\");
MyFont = new FontFamily(new Uri($"file:///{fontPath}"), "./#微软雅黑");
MyFont = new FontFamily(new Uri($"file:///{fontPath}"), "./#Source Han Sans CN");
}
}
}

View file

@ -102,6 +102,9 @@
</ItemGroup>
<ItemGroup>
<None Update="Resources\Fonts\SourceHanSansCN-Regular.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Resources\Fonts\微软雅黑-Regular.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>