-
-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jagged font rendering #650
Comments
Does this happen with Epiphany or other WebKitGTK apps? |
It seems that the jagged fonts happen with the Wayland GDK backend, but not with the X11 backend. |
Yeah.
Yep, that seems to be the case. Running |
For what it's worth, you can put the override within the .desktop file. For example:
|
Closing as it's not fixable in Foliate and not actionable. |
On the GDK_BACKEND solution not working for me I uninstalled the snap edition and downloaded the .deb from the Foliate github. This solved my rendering issues. Commenting for those who may encounter a similar issue in the future. |
The font issues are so simple and yet, there's so little understanding among most people including the vast majority of developers. So, leaving it here for @johnfactotum and everyone who stumbles upon this. The first message complains about jagged fonts and says that it "makes it look like there isn't anti-aliasing". There is indeed no anti-aliasing in the screenshot, but jagged fonts have nothing to do with it. The fact of the matter is that @poperigby has anti-aliasing disabled either system-wide or framework-wide either intentionally or unintentionally. If it's disabled, then no application should ever try to override this setting, otherwise it would belong to the rubbish bin, so there's no problem here. Now, if you enable AA, then you'll still have jagged fonts, but because of the blur introduced by AA, you will not see it. Common sense suggests that looking at blurry text all day long will not be good for your eyesight in the long run, but apparently nobody cares. That's why these bugs are so obscure: most developers and QA engineers have AA enabled and they simply cannot see it. OK, so what do we see in the screenshot? Actually, what we see is a problem with hinting. It's so happened that the characters currently running the GNOME project, specifically those in charge of Essentially, what it means is that GTK4 makes AA blur necessary to hide font imperfections, so any app that uses GTK4 will force the user to either enable AA or uninstall the app. If the user had a strong reason not to enable AA before, it will probably be the latter. |
These screenshots are from the GTK 3 version. |
Also, I remember seeing the jagged fonts in Flatpak but not on the "native" system. So there's that. The changes in GTK4 are mostly about sub-pixel stuff, which is considered outdated with current high DPI screens. |
I have a custom fontconfig folder and fonts.conf in it that I use with the Firefox flatpak to set the rendering nicely for me, no AA, correct hinting, etc. I copied it over to foliate's flatpak config folder on KDE and checked it out.. but curiously, it only affects the app interface itself.. but not the ebook content itself which remains AA. What am I missing here that the ebook text doesn't pick up the custom settings from the fonts.conf when Firefox does? On QT when this happens it's usually because of an issue with a QT widget that forces AA, but Foliate is a GTK app.. |
WebKitGTK handles font rendering differently and is known to be buggy. See #1227. |
Describe the bug
Text has jagged edges that makes it look like there isn't anti-aliasing.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The font is rendered with smooth edges.
Screenshots
Version:
The text was updated successfully, but these errors were encountered: