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

unrecognizable characters with Qt document #816

Closed
magicdmer opened this issue Nov 13, 2017 · 34 comments
Closed

unrecognizable characters with Qt document #816

magicdmer opened this issue Nov 13, 2017 · 34 comments

Comments

@magicdmer
Copy link

magicdmer commented Nov 13, 2017

when i look up qt5 document, zeal display unrecognizable characters like follow picture , other document is ok

problem picture


@trollixx
Copy link
Member

What's the language of your system? Also version of Zeal?

@magicdmer
Copy link
Author

system language: chinese
version: 0.4.0
It looks like that , the problem doesn't always happen but sometimes.

@trollixx
Copy link
Member

Even for the same Qt 5 docset it is not always like that?

@annulen Any hints on how to debug this?

I can see that in a few places (search box, tabs) regular font somehow got replaced with a monospaced version, but at the same time menu and lists look fine.

@magicdmer
Copy link
Author

magicdmer commented Nov 21, 2017

Yes, even for the same Qt 5 docset, it is not always like that.
The first time i reply to you, it's ok, but now i reply to you , it's bad.
Look at pictures follow
picture1
picture2

@annulen
Copy link

annulen commented Nov 21, 2017

Have you tried to open the same html page in minimal QtWebKit application, e.g. https://github.com/OtterBrowser/test-qtwebkit ?

@annulen
Copy link

annulen commented Nov 21, 2017

It's also interesting to know if this issue reproduces with Qt 5.4. Unfortunately it means building QtWebKit from sources

@trollixx
Copy link
Member

@magicdmer Could you try viewing same pages with the linked minimal browser?

Zeal doesn't support Qt < 5.5.

I think Qt has issues with resolving and rendering fonts on Chinese Windows.

@annulen
Copy link

annulen commented Nov 21, 2017

Is the page using local or web font? In online version I see it uses OpenSans, which is probably missing on Windows and used as a web font. Does rendering change if you install OpenSans into the system?

(Please check what font family is actually used)

@annulen
Copy link

annulen commented Nov 21, 2017

Note that link above contains sources; if something binary is needed, you can try with Otter Browser

@trollixx
Copy link
Member

Titillium Web is the font in use. It is a web font.

@annulen
Copy link

annulen commented Nov 21, 2017

Indeed. Could you try painting some text with that font by modifying https://github.com/annulen/test_qrawfont and see if problem reproduces?

@trollixx
Copy link
Member

It seems that Chinese Windows is more than just a language pack anyone could install...

@annulen
Copy link

annulen commented Nov 21, 2017

This is quite possible. My current theory is a regression in QRawFont (btw there was one fixed recently, se https://bugreports.qt.io/browse/QTBUG-59799) which easily went unnoticed because it doesn't reproduce on vanilla system.

@annulen
Copy link

annulen commented Nov 21, 2017

So, please try to find out if QRawFont + font file reproduces the bug or not

@annulen
Copy link

annulen commented Nov 21, 2017

Did it ever happen for other system than Chinese Windows?

@trollixx
Copy link
Member

I am not aware of this happening anywhere but the Chinese version.

@magicdmer
Copy link
Author

But, other documents are ok except qt 5 document , other documents are never wrong. and this once, my qt5 document is back to normal. Look at picture:
picture4

@magicdmer
Copy link
Author

In additon, when qt5 document is wrong, i use "Open URL" in chrome and it will be ok

@annulen
Copy link

annulen commented Nov 22, 2017

@magicdmer Other documents probably use different fonts

@corkine
Copy link

corkine commented Feb 24, 2018

I also encountered this problem. The documentation is numpy, scipy and qt5.
Sometimes Zeal does not work, My Windows version is Windows 8.1, Chinese Version but I use English as primary display language . Zeal x64 0.5.0 . OpenURL always works.

errorinfo1

errorinfo2

@fihyer
Copy link

fihyer commented Nov 10, 2018

I'm running Zeal version 0.6.1 on Windows 10 pro x64, with both region and system locale set to US, and English as display language. Still facing the similar problem described above.
image
Please help

@magicdmer
Copy link
Author

version:0.6.1, partial wrong text

@corkine
Copy link

corkine commented Dec 5, 2018

Zeal 0.6.1 on Windows 8, Chinese Version but use English Language as display,both Java SE、Scala、JavaFx all have same issue, but not include same JavaDoc tech page like Java EE, Spring Framework.

@dsafa
Copy link

dsafa commented Dec 7, 2018

I also have this problem with Zeal 0.6.1 on Windows 10 with language set to English.
Not sure about everyone else here but the problem only occurs when I have mac type enabled. If I disable it everything renders normally. Hopefully that helps.

@corkine
Copy link

corkine commented Dec 7, 2018

I also have this problem with Zeal 0.6.1 on Windows 10 with language set to English.
Not sure about everyone else here but the problem only occurs when I have mac type enabled. If I disable it everything renders normally. Hopefully that helps.

This is the case, I have ejected Mactype for Zeal rendering, and then Java, Qt, Scala documents can be displayed properly, cool! Even Chinese systems can display normally. I think that Oriental text may not work well on Windows, so many people use Mactype to optimize fonts. I didn't expect it to be a Mactype problem!

@magicdmer
Copy link
Author

magicdmer commented Dec 7, 2018

I also have this problem with Zeal 0.6.1 on Windows 10 with language set to English.
Not sure about everyone else here but the problem only occurs when I have mac type enabled. If I disable it everything renders normally. Hopefully that helps.

Thank you, i add zeal.exe to mactype's exclusion list , zeal works ok now.
But it's interesting that the first time i meet this problem (old version), i disable mactype for test, but the problem not solved , so maybe i need test it for some time

@magicdmer
Copy link
Author

@trollixx the issue maybe can close, new version zeal works well without mactype

@trollixx
Copy link
Member

Thanks for the update! I didn't know about MacType. Is it popular among users with CJK system language?

@magicdmer
Copy link
Author

magicdmer commented Dec 19, 2018

Thanks for the update! I didn't know about MacType. Is it popular among users with CJK system language?

MacType is a opensource font rendering tool for Windows, you can find it on github. In fact , it's popular among users who want to make their system font more perfect in the world.

@annulen
Copy link

annulen commented Dec 19, 2018

Apple's way of rendering fonts is... peculiar, to say mildly. I don't think it's supported by Qt in any way

@annulen
Copy link

annulen commented Dec 19, 2018

snowie2000/mactype#195

@trollixx
Copy link
Member

@annulen the ticket says there's also a known issue with some Windows API that QtWK calls, maybe that's what causing our other font rendering issues on Windows?

@annulen
Copy link

annulen commented Dec 20, 2018

QtWebKit doesn't use Windows API for font manipulations, everything is done via QRawFont and QFontDatabase. So bugs should be reproducible in regular Qt widgets

@lock
Copy link

lock bot commented Jun 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for a related request.

@lock lock bot locked and limited conversation to collaborators Jun 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

6 participants