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

字体异常 #2480

Open
ThemanRonin opened this issue Jan 31, 2024 · 3 comments
Open

字体异常 #2480

ThemanRonin opened this issue Jan 31, 2024 · 3 comments

Comments

@ThemanRonin
Copy link

vnote版本:vnote-win-x64-qt5.15.2_v3.17.0
Windows版本:Windows10 版本 22H2 (操作系统内部版本 19045.3930)
分辨率信息:3840x2160 150%缩放

vnote主页的中文字体看起来很奇怪。具体截图如下。 文字看起来并不是模糊,而是感觉像是缺失了一些细节
部分笔记中的字体也是和主页中的字体一样比较奇怪。但是提升缩放后就是正常了的,可能是字体问题?

image_203

尝试更改高dpi缩放并没有解决问题

@tamlok
Copy link
Member

tamlok commented Jan 31, 2024

新建一个qt.conf文件,然后输入:

[Platforms]
WindowsArguments = fontengine=freetype

保存,放在vnote.exe同目录下面。

@ThemanRonin
Copy link
Author

新建一个qt.conf文件,然后输入:

[Platforms] WindowsArguments = fontengine=freetype

保存,放在vnote.exe同目录下面。

这样显示是比较清晰了,但是字体变的很粗 😨
image

@tamlok
Copy link
Member

tamlok commented Jan 31, 2024

这个是不是变成黑体了?

你系统上面有微软雅黑吗?这是主题里面配置得字体,你看要不要修改一下或者安装一个字体。或者切换别得主题看看。

QWidget {
color: @widgets#qwidget#fg;
background-color: @widgets#qwidget#bg;
font-family: "冬青黑体", "YaHei Consolas Hybrid", "Microsoft YaHei", "微软雅黑", "Microsoft YaHei UI", "WenQuanYi Micro Hei", "文泉驿雅黑", "Dengxian", "等线体", "STXihei", "华文细黑", "Liberation Sans", "Droid Sans", "NSimSun", "新宋体", "SimSun", "宋体", "Helvetica", "sans-serif", "Tahoma", "Arial", "Verdana", "Geneva", "Georgia", "Times New Roman";
}

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

No branches or pull requests

2 participants