Skip to content
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

windows版本 字体模糊发虚 #24

Closed
necan opened this issue Mar 15, 2018 · 7 comments
Closed

windows版本 字体模糊发虚 #24

necan opened this issue Mar 15, 2018 · 7 comments
Labels

Comments

@necan
Copy link

necan commented Mar 15, 2018

软件的字体渲染是 Grayscale Anti-Aliasing,低分辨率下很模糊,请支持 Subpixel Anti-Aliasing,就像 Typora 一样清晰。

@zhuzhuyule
Copy link
Owner

是在什么环境以及能否提供截图?

@necan
Copy link
Author

necan commented Mar 16, 2018

Windows10,分辨率:1366*768

HexoEditor 字体发虚,放大图片查看每个像素,可以看到HexoEditor的字体是灰度抗锯齿渲染,这种渲染在低分率下,字体是相当模糊的

hexo_1

而 Typora 采用的是次像素抗锯齿渲染,这在低分率下也可以看到清晰锐利的字体

typora

@necan necan changed the title windows版本 字体模糊 windows版本 字体模糊发虚 Mar 16, 2018
@zhuzhuyule
Copy link
Owner

@necan 如果这个是预览效果,可以通过添加样式文件解决。
打开设置:

添加字体。(可通过 Ctrl + Alt + Shift + F12,唤出调试工具辅助)

@necan
Copy link
Author

necan commented Apr 2, 2018

@zhuzhuyule 更换css是没有用的,本身并不会更改字体的渲染方式,字体照样是灰度抗锯齿渲染,你没发现,你发的图片上面的标题就是模糊的。

@necan
Copy link
Author

necan commented Apr 2, 2018

曾经 Typora 也有这个问题,后来有人反应后,就解决了,typora/typora-issues#790

@zhuzhuyule
Copy link
Owner

这个我试了,确实是字体的问题。
设置:-webkit-font-smoothing: subpixel-antialiased !important; 没有任何反应,修改字体会影响显示。

  • Typora 使用的字体样式:
{
    font-family: "Open Sans","Clear Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
}
  • HexoEditor使用的字体样式:
{
    font-family: "Roboto", "Noto Sans", "Ubuntu", "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif, "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft Yahei";
    font-size: 14px;
}
  • Typora默认的 ZoomLevel1.2239010857415449;(可设置连续 +1/-1)
  • HexoEditor默认的 ZoomLevel0;(默认且不可设置)

@necan 感谢提出的问题以及查看到的优化建议。以后将会做显示上的优化。谢谢。

@zhuzhuyule
Copy link
Owner

@necan
Modify in v1.5.30
Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants