-
Notifications
You must be signed in to change notification settings - Fork 795
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
Wrong CJK font in the UI #536
Comments
Zeal should use the font your system provides, but I do see the problem on your screenshot in #537. |
I thought so, for |
Could you check if the latest CI build has the same problem? |
@trollixx Yep, those 2 problems seem to be fixed in the latest CI Build. Although that ugly font still shows in few places like settings panel, it's much more usable and pretty now. |
Where exactly in settings? Available/Installed docset lists? |
@trollixx Here's another screenshot to demonstrate such issue: |
Very strange. What is your Windows language? Any changes to default font or
theme settings?
|
The language is |
This is a bug of long history from QT, that messes up with Chinese/Japanese/Korean fonts. Unless Zeal presets the UI font globally as san-serif/serif, there is no quick remedy. |
Indeed seems like a bug in Qt, but I am not sure how to debug this, considering I don't have Chinese Windows. @liangqi I saw people talking to you on IRC regarding Qt issues on Chinese Windows. Any ideas about what could be wrong here? |
It has been a QT bug for cjk fonts for decades. And from how the app looks,
you can tell if it is made with QT or other technologies.
You have to override the font config manually.
…On Tue, Jan 2, 2018 at 7:43 PM, Oleg Shparber ***@***.***> wrote:
Indeed seems like a bug in Qt, but I am not sure how to debug this,
considering I don't have Chinese Windows.
@liangqi <https://github.com/liangqi> I saw people talking to you on IRC
regarding Qt issues on Chinese Windows. Any ideas about what could be wrong
here?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#536 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHjh95N9vlN3n-rf655yZynSO1OQCoxkks5tGrEagaJpZM4IJesc>
.
|
Considering that in certain places fonts are rendered properly, it feels like the bug should be easy to fix. |
I call this a "SimSun Ghost in QT". Back in the old days, when people were using Windows 95, 98, XP, Simsun was the prevailing font set in simplifed Chinese operation systems. QT3/QT4 would detect this font and put it into default use. However, even if you changed the default font system wide, for example, to TAHOMA, some parts of QT's widget still got rendered by Simsun font type. This also occured in the later Windows Vista, 7, 8, 10, while the simplified Chinese version OS chose Segoe or MS Yahei as its default font. A mixture of the real system default font and "Simsun". Respectively, it could also happen in Japanese Windows, with the Mincho and Gothic fonts. |
@bosbyj Thanks for the background story. It looks like parts rendered by the application itself (list delegates) are fine, and all default Qt's rendering is off. Considering we have a lot of Chinese users, I would love to have this fixed, but I need to find some time and dig into how Qt chooses fonts. This seems like a font priority bug, or Qt not reading the system preference by default. |
You are welcome and thank you for your effort. I am user of many QT based gui apps, to name a few, GoldenDict, Anki, Calibre ... and they all look alike, with font messed up by Simsun. I now take this a feature of QT, trying to avoid perfectionism. If you want to fix it, you may ship an open source cjk font and override the setting globally for all Chinese-Japanese-Korean users. |
I would rather prefer to fix this in Qt. And it's definitely possible since we already have some parts of the application rendered properly. I'll try to find some time to figure out why the wrong font gets selected. |
Thank you. For your information on Japanese font, same scenario after
windows 7.
https://bugreports.qt.io/browse/QTBUG-54760
…On Sat, Jan 6, 2018 at 9:22 PM, Oleg Shparber ***@***.***> wrote:
I would rather prefer to fix this in Qt. And it's definitely possible
since we already have some parts of the application rendered properly. I'll
try to find some time to figure out why the wrong font gets selected.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#536 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHjh94oTf3rhRgslmSz4btmLFLVsgIOgks5tIA5ZgaJpZM4IJesc>
.
|
Found this SO thread, that basically says that using SimSun is the correct behavior. Also, can anyone try setting locale? Just add the following line in the very beginning of QLocale::setDefault(QLocale::C);
// or
QLocale::setDefault(QStringLiteral("en_US")); |
Hello guys,
Thanks for this amazing work.
I'm currently using the latest version of
Zeal
onWindows 10
and the default font in the list and other stuff like settings panel is not so good. Hopefully you could implement a feature to allow users change the default font shows inside the app.The text was updated successfully, but these errors were encountered: