You are not logged in.
Hi forks,
This is an effort to bring the subpixel rendering of PDF into Linux.
In order to enable subpixel rendering in evince, you need to install at least the following three packages from AUR: poppler-lcdfilter, poppler-glib-lcdfilter, and evince-lcdfilter. To install them using yaourt, execute
yaourt -S poppler-lcdfilter poppler-glib-lcdfilter evince-lcdfilter
In order to obtain the optimal result (just like the screenshots in the gallery), you need to install the infinality patched freetype and a cairo with my patch. I would recommand you to install the infinality-bundle first. You can refer to the tutorial https://bbs.archlinux.org/viewtopic.php?id=162098. Then you should install my patched cairo, cairo-infinality-lcdfilter in AUR.
yaourt -S cairo-infinality-lcdfilter
For more information and technique details, please refer to my github page of this patchset: https://github.com/zhou13/poppler-subpixel.
Left side: subpixel rendering result (after patch)
Right side: gray-scale rendering result (before patch)
https://github.com/zhou13/poppler-subpi … ournal.png
https://github.com/zhou13/poppler-subpi … _serif.png
https://github.com/zhou13/poppler-subpi … mg/cjk.png
Please leave your feedback and report issues in this thread. Thank you.
Last edited by zhou13 (2016-01-05 07:36:27)
Offline
Nice work! Is it your intention to upstream these patches?
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Nice work! Is it your intention to upstream these patches?
Yes. I will try to submit them upstream. But according to the history, it may take a long time to refine such patch until upstream can finally accept them. (cairo-respect-fontconfig.patch has 7-year-old history and is still not be merged)
Offline
Came here to say that your patch-set produces excellent results! I was using adobe reader as it was the only PDF reader on Linux that could render properly smoothed fonts and now I can get rid of that.
Totally appreciate this, can you please add this support to Okular as well?
Offline
Came here to say that your patch-set produces excellent results! I was using adobe reader as it was the only PDF reader on Linux that could render properly smoothed fonts and now I can get rid of that.
Totally appreciate this, can you please add this support to Okular as well?
The upstream okular uses Splash as the backend, which is harder to deal with. In order to support okular properly, you need to patch poppler-qt to use cairo https://github.com/giddie/poppler-qt4-cairo-backend . That patch should work in most case. Since such work is rejected by upstream, I don't think I will work on it unless I go back to KDE.
Offline