cppreference-doc icon indicating copy to clipboard operation
cppreference-doc copied to clipboard

QCH fonts are too large

Open 10110111 opened this issue 6 years ago • 2 comments

When compared to the Qt documentation, cppreference appears to have really large fonts. And the problem is exacerbated with current Qt5 versions which lack QtWebKit, so one can't even scale down the main text: only the caption scales.

The fonts appear correct in the official QCH book release 20170409, and are already too large in the 20181028 release. And this problem remains with the releases made from this repo.

See the following screenshots for comparison between Qt docs and C++ docs.

QString docs @ Qt5 Assistant: QString @ Qt5 Assistant

std::string docs @ Qt5 Assistant: std::string docs @ Qt5 Assistant

Even if I open in Qt4 Assistant built with QtWebKit support, the fonts are too large, although the content is easier to scale (and formatting is less broken, but this is another issue, #47).

std::string docs @ Qt4 Assistant: std::string docs @ Qt4 Assistant

10110111 avatar May 08 '19 08:05 10110111

The problem is that Qt5 Assistant does not support full HTML, only part of it. We currently convert HTML and CSS features that are not supported by Qt to some equivalents that are supported, but this is error prone and could be improved.

p12tic avatar Jun 07 '19 21:06 p12tic

Just released QtCreator 4.11 introduced optional litehtml-based help rendering backend that works somewhat better:

2019-12-13_00-17

It's still not ideal, but still better than before.

You can change the backend in Tools -> Options -> Help -> General -> Behavoiur

Edit I was to quick to judge, the new backend has problems too:

2019-12-13_00-26

ilyapopov avatar Dec 12 '19 23:12 ilyapopov