lwindolf / liferea

Liferea (Linux Feed Reader), a news reader for GTK/GNOME
https://lzone.de/liferea
GNU General Public License v2.0
825 stars 128 forks source link

How do I fix my issue with font rendering for the articles? #1222

Closed Hund closed 1 year ago

Hund commented 1 year ago

Hi! I'm trying out Liferea, for the first time in a decade or so. :) It's working good, except for some font issues.

This is Liferea (with bad font rendering for the article, but with good font rendering in the UI itself):

Liferea article font rendering

This is Firefox (with good font rendering):

Firefox font rendering

I understand that this is due to the article is being rendered using Webkit. How do I fix this issue?

lwindolf commented 1 year ago

Which desktop environment do you use (Liferea tries to get a good font via dconf)?

Hund commented 1 year ago

Which desktop environment do you use (Liferea tries to get a good font via dconf)?

I'm using Xfce. I'm not really that familiar with graphical applications. I'll look up dconf.

lwindolf commented 1 year ago

Using XFCE explains the problem. DConf is GNOME stuff, which is missing on your setup. Liferea falls back more or less gracefully by using the font default of Webkit which turns out to look ugly.

As it is impossible (for me) to support multiple desktop environments I can only point you at this workaround to manually set a good font: https://lzone.de/liferea/blog/Liferea-Trick-10-Custom-CSS-for-Article-Rendering.html Try setting a font definition in div.content

Hund commented 1 year ago

Thanks. I have tried that already, but I couldn't make it work. What exactly should I add?

lwindolf commented 1 year ago

Replace the

// div.content {}

with e.g.

div.content {
    font-family: Sans;
    font-size: 12pt;
}
Hund commented 1 year ago

That didn't help. The text is still blurry.

lwindolf commented 1 year ago

Sorry, I cannot help further. Above is the way how to fully control the fonts Liferea does use. It's probably all about finding a good font combination on your system. So something not simply "Sans".

Hund commented 1 year ago

I tried using "DejaVu Sans Book", but that didn't work either. I'm not even sure it's possible to use anything like it.

Thank you for you time anyway. I'm hoping I'll be able to solve it somehow, so I can start using Liferea again. :)