Skip to content

Commit

Permalink
fix font fuzzy in different windows dpi #121
Browse files Browse the repository at this point in the history
  • Loading branch information
jitwxs committed Sep 16, 2022
1 parent dd46da4 commit b8f1b7f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MusicLyricApp/MusicLyricApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
<PropertyGroup>
<ApplicationIcon>Favicon2.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="Costura, Version=5.8.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d">
<HintPath>..\packages\Costura.Fody.5.8.0-alpha0098\lib\netstandard1.0\Costura.dll</HintPath>
Expand Down Expand Up @@ -337,6 +340,7 @@
<Content Include="Favicon2.ico" />
<Content Include="matrix.bin" />
<Content Include="NLog.xsd" />
<Content Include="Properties\app.manifest" />
<Content Include="sys.dic" />
<Content Include="unk.dic" />
</ItemGroup>
Expand Down
11 changes: 11 additions & 0 deletions MusicLyricApp/Properties/app.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<!-- https://docs.microsoft.com/zh-cn/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process -->
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<asmv3:application>
<asmv3:windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>

0 comments on commit b8f1b7f

Please sign in to comment.