johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
6.15k stars 283 forks source link

Blurry fonts on HiDPI display #916

Open mwichtowski opened 2 years ago

mwichtowski commented 2 years ago

Hi, Foliate is great, but on my HiDPI displays, fonts are very blurry: obraz In fact, everything rendered as a book is blurry. Version 2.6.3. I've found, that setting fullscreen mode fixes this effect.

johnfactotum commented 2 years ago

Probably a WebKitGTK bug. I know that in GTK 3, when CSS filter is applied it would look blurry. In Foliate, that means if you've adjusted the brightness or enabled invert mode, it would look blurry. It appears to be fixed in GTK 4. Not sure about fullscreen mode, though. Can you explain how setting fullscreen mode fixes the issue?

mwichtowski commented 2 years ago

I don't how, but when I clicked fullscreen button, everything has became sharp and I can't reproduce the problem now :( obraz

190n commented 5 months ago

I have this issue too, but it doesn't go away in fullscreen. I have noticed that it only occurs with fractional scaling; normally I use 125%, where the text is blurry, but if I switch to 200% it looks fine. Screenshot below. Should I open a new issue or keep using this one?

image

johnfactotum commented 5 months ago

Looks like the same issue. Guess I'll reopen this.

georgeenciu commented 4 months ago

I have the same issues when reading PDFs. ePubs look correct tho. Worth noting that I am running the app using WEBKIT_DISABLE_DMABUF_RENDERER=1 on 23.10 image

johnfactotum commented 4 months ago

@georgeenciu Blurry PDF is a different bug.

Actually I'm not sure if @190n's issue is the same as the original. But certainly, PDFs would be blurry regardless of being in fullscreen or using fractional scaling or not.

190n commented 4 months ago

My screenshot was from an ePub.