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

Non-monospace fonts used for some code #562

Closed
Kwpolska opened this issue Jul 16, 2016 · 7 comments
Closed

Non-monospace fonts used for some code #562

Kwpolska opened this issue Jul 16, 2016 · 7 comments
Labels

Comments

@Kwpolska
Copy link

On Arch Linux, Zeal has some issues with font-family: monospace; or equivalent. Django docs are rendered with a bitmap version of Helvetica. Vim, Python, Bash docs are rendered with Helvetica Neue, the sans-serif font on my OS.

@bradst
Copy link

bradst commented Jul 20, 2016

I've noticed this as well, using Arch Linux. Python 3, SciPy, Sass, and jQuery are some of the affected docsets. All inline code and code blocks are shown in variable-width font. The affected local files display properly in Firefox and Chromium. Interestingly, other docsets including CSS, Rust, and TypeScript are not affected; they show correctly monospaced fonts in Zeal.

@trollixx
Copy link
Member

It's a problem with the deprecated Qt WebKit module that is still in use. The are other related issues like #359 and #468. Building with Qt WebEngine fixes the rendering, but there some lacking features.

Switching to https://github.com/annulen/webkit might be a good solution as well, but I haven't got time to test that myself.

@SyrakuShaikh
Copy link

I'm using the latest zeal-git v0.3.1 in archlinux and the problems mentioned above are still the same.
The codes in Python_3 docset cannot use the right monospace font and therefore cannot be aligned well.

Is there a workaround now? Thanks!

@bradst
Copy link

bradst commented Dec 15, 2016

@SyrakuShaikh Here's what I've been doing to manually enable WebEngine:

Add the following flag to the qmake-qt5 call in the PKGBUILD:

CONFIG+=zeal_qtwebengine

Then add qt5-webengine to the depends array, and rebuild the package.

@SyrakuShaikh
Copy link

Many thanks @bradst ! Rebuilding the package with qt5-webengine works and zeal now is almost perfect!

@trollixx
Copy link
Member

While using Qt WebEngine should indeed fix all rendnering issues, Zeal lacks proper support for it, and there are way more UX bugs with it. As I said above, my hope is that with the revived Qt WebKit all those issues will go away.

For now I'm marking this issue as a duplicate of #359 just to avoid multiple tickets about the same issue.

@trollixx trollixx added status/duplicate Duplicate of another issue. and removed status/upstream-problem labels Dec 16, 2016
@lock
Copy link

lock bot commented Sep 16, 2018

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

@lock lock bot locked and limited conversation to collaborators Sep 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

4 participants