-
Notifications
You must be signed in to change notification settings - Fork 11.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request]: 建议xaml文件增加TextOptions.TextHintingMode="Fixed",禁用字体的hinting,使得低分屏的中文字体渲染更平滑 #5713
Comments
是否测试过其他字体也有此效果? |
已测试过。刚才已提交PR了。 除了更纱字体,如果要去除系统其他中文字体 hinting,可以使用
然后把生成的字体文件在 Windows PE 环境里替换 Windows\fonts 目录下的同名字体文件。 系统老旧的宋体字、黑体字等,虽然没有hinting,但内含大量点阵字,在小字号情况下 WPF 的渲染机制只会优先使用点阵字,等于没效果。 |
已处理,反馈下效果 |
commit 60a75d9 Author: 2dust <[email protected]> Date: Mon Sep 23 17:23:23 2024 +0800 up 6.60 commit 2456690 Author: 2dust <[email protected]> Date: Mon Sep 23 17:22:14 2024 +0800 up PackageReference commit cc42861 Author: 2dust <[email protected]> Date: Mon Sep 23 17:17:12 2024 +0800 Adjusting the text display commit 4d330ce Author: 2dust <[email protected]> Date: Mon Sep 23 17:05:03 2024 +0800 Disable auto update geo commit 2503583 Author: 2dust <[email protected]> Date: Mon Sep 23 17:03:28 2024 +0800 System proxy and tun mode 2dust#5651 commit 1b11916 Author: 2dust <[email protected]> Date: Mon Sep 23 15:16:32 2024 +0800 Preparing to remove part of the core 2dust#5703 commit 3dfd557 Author: 2dust <[email protected]> Date: Mon Sep 23 15:00:25 2024 +0800 Fix the problem of showing and hiding statistics columns commit cd6bea2 Author: 2dust <[email protected]> Date: Mon Sep 23 14:10:58 2024 +0800 Improved font display 2dust#5713 commit 054f0f2 Author: 2dust <[email protected]> Date: Mon Sep 23 13:37:18 2024 +0800 Bug fix 2dust#5725 commit 9734767 Author: 2dust <[email protected]> Date: Mon Sep 23 12:09:17 2024 +0800 Bug fix 2dust#5724 commit 36d1585 Author: 2dust <[email protected]> Date: Mon Sep 23 11:04:37 2024 +0800 Setting up not to automatically update the GEO file on first run 2dust#5704 commit 4813610 Author: 2dust <[email protected]> Date: Mon Sep 23 11:01:03 2024 +0800 When running for the first time, switch the interface language to English when judging that the system language is not Chinese. 2dust#5670
技术上可以的话希望可以加个开关,让用户自行决定此功能的状态。 |
相关问题
默认的微软雅黑字体在低分屏下总会使用臭名昭著的hinting显示,导致中文字体高低不平,只有在系统缩放比例在200%或以上,字体才不使用hinting。但并非所有人都有高分屏,我的系统缩放比例是125%,而且已通过TtfAutoHint工具去掉微软雅黑字体的所有hinting,使得大部分情况下微软雅黑字体都渲染得很平滑。由于v2rayN采用WPF字体渲染机制,即使我去掉微软雅黑的hinting,当前的v2rayN仍强制使用hinting算法渲染字体,字体显得怪异。
描述你希望的解决方案
我建议修改源代码的xaml文件,修改
TextOptions
,增加一行TextOptions.TextHintingMode="Fixed"
,还要把TextOptions.TextFormattingMode
的值由"Display"
改为"Ideal"
,以及TextOptions.TextRenderingMode
的值由"Auto
改为"ClearType"
。描述你所考虑的替代方案
No response
我确认已查询历史issues
The text was updated successfully, but these errors were encountered: