It would be nice if the font size in the preview pane (particular the bibtex2html output) could be adjusted. I have noted that it comes out quite differently on different monitors (and is particular small, close to unreadable, on HiDPI panels). If it is also possible to adjust the font itself, this would be even better (or just use the system font instead of bibtex2html's default)
Created attachment 95315 [details] Use QTextDocument and QTextEdit over WebEngine or WebKit for reference preview This patch prefers using QTextDocument and QTextEdit over WebEngine or WebKit for reference preview. Also, please provide the part of cmake's output where it tells you if it has found WebEngine or WebKit (plus 2-3 lines above and below).
I assume that you are using either Qt's WebEngine or WebKit component. In either components, font sizes are hard to control from the outside. This patches enforces the usage of "native" Qt components which more likely will follow the GUI's font settings.
Alas, I cannot test your patch, since I am unable to build master due to some kde5 configuration issue i didn't manage to resolve. I am using branch 0.6. This uses QtWebKit (without, it does not provide preview at all).
OK, I managed to compile master now, and it looks much better indeed. However, I still don't see where the preview font size (alone) can be adjusted. Nevertheless, setting version to 0.6. since this seems to affect qt4 significantly more.
Created attachment 95345 [details] Patch/attachment 95315 [details] ported to KBibTeX 0.6 Please try this patch which applies to KBibTeX 0.6 (at least the branch from git: 'kbibtex/0.6').
(In reply to Juergen Spitzmueller from comment #4) > OK, I managed to compile master now, and it looks much better indeed. > However, I still don't see where the preview font size (alone) can be > adjusted. Well, it should not be necessary to be (manually) adjusted, it should use the default text size and font the KDE GUI is using everywhere else. > Nevertheless, setting version to 0.6. since this seems to affect qt4 > significantly more. Ok, I just added patch/attachment 95345 [details] for KBibTeX 0.6
The patch works very well! It even gives the correct font size with HiDPI. As to the manual adjustment: I had in mind the possibility to zoom the html output (e.g. via the context menu of the reference preview), and thus to make this larger than the default text size. But the most severe usability problems are also solved by the latest patch.
Git commit 6723bd8e9406a6e7466f0b751b00b43502c8c91a by Thomas Fischer. Committed on 08/11/2015 at 18:56. Pushed by thomasfischer into branch 'kbibtex/0.6'. Use only QTextDocument/QTextEdit for reference preview The reference preview uses a HTML rendering engine to show references in a pretty fashion. So far, either a WebKit, a WebEngine, a QLabel, or a QTextDocument/QTextEdit-based solution (depending on version, platform, and availability) has been used. To simplify the code and in order to make rendered HTML output to use the same font size as the regular user interface, QTextDocument/QTextEdit will be used exclusively to preview references. M +22 -45 src/program/docklets/referencepreview.cpp M +1 -1 src/program/docklets/referencepreview.h http://commits.kde.org/kbibtex/6723bd8e9406a6e7466f0b751b00b43502c8c91a
> As to the manual adjustment: I had in mind the possibility to zoom the html > output (e.g. via the context menu of the reference preview), and thus to > make this larger than the default text size. There is no quick and easy way to implement this feature. I'll try to keep it in my metal todo list, though.