-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
font aliasing #1227
Comments
If you're using the invert mode, it would set Edit: you can also try changing the GNOME settings related to fonts (with gsettings, dconf-editor, or GNOME Tweaks), which might override the fontconfig settings. |
I don't use any of KDE of Gnome, so I'm unsure if these settings are even loaded... |
Just tested it and it does respect fontconfig settings. The following disables RGBA subpixel antialiasing for me:
You need something like Also note that if
The settings would probably be loaded for GTK apps if you have |
Try to run some bare X11-session like with startx and twm, so no additional gnome or kde daemons are running. My .fonts.conf is pretty simple but puttying anything to .config/com.github.johnfactotum.Foliate/user-stylesheet.css doesn't change the game.
|
and I'm still on gtk3 if it matters... |
Ah, yes, sorry. Missed that. Well, the GTK 3 version doesn't support user styles. So there's no way to add custom styles unless you patch Foliate. I guess you could ask the WebKitGTK devs about how fontconfig settings are loaded. I wouldn't be surprised if it's an WebKitGTK bug. |
Ok, thank you for your time. I've just installed the app cause it looked nice. Actually it's ok to patch a few lines if knew where to look. I've installed it by compiling from FreeBSD port tree anyway. I have that skill, though I'm not a programmer. p.s. |
You can modify the stylesheet here: https://github.com/johnfactotum/foliate/blob/2.6.4/src/web/epub-viewer.js#L299-L310
No, I'm happy for what it is. There are other bugs on other browser engines, too. Though it's true that WebKitGTK has a fair share of bugs related to fonts. E.g.
Whereas all of the above are handled correctly by Firefox. |
Hi, I've made a .css file to try out.. but it's not working..
I've placed the css file in various locations in the flatpak's .var folder hierarchy for foliate.. but I can't get the app to "see" it.. is there a specific folder location it needs to be placed precisely? I'm assuming the filename doesn't matter just that the extension be css. Is it supposed to be embedded inside a theme json in the themes folder? |
Thanks! Changing the filename worked and I can see the difference. Further testing shows me that font hinting doesn't appear to be passed through and I don't think there's a way to set it like you can with the normal freetype interpreter environment variables. I did find something that seems to have a subtle effect, will have to test further, possibly geometricPrecision for scaling. https://developer.mozilla.org/en-US/docs/Web/CSS/text-rendering |
Question:
Hello, I've just installed the foliate and it seems like it doesn't respect my fontconfig settings from .fonts.conf. See font rainbow etc. For some reason I don't see any such settings in the app. Maybe it get the settings from some other place?
Version:
The text was updated successfully, but these errors were encountered: