-
Notifications
You must be signed in to change notification settings - Fork 5k
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
snap version does not use my subpixel rendering settings #10429
Comments
tdesktop snap doesn't have anything special about font settings... Only standard snap scripts. |
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1916342/comments/3 https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1916342/comments/5 |
I don't want to implement font settings reading manually... |
I would say this is ridiculous, making font settings reading to be manually implemented by snap developers. I don't imagine how each app will parse fontconfig files manually... |
Chromium in snap does this automatically, and i don't see any manual font settings loading in snapcraft file. |
How does it do? |
I'm afraid it is not related to fontconfig... gtk reads font settings from xsettings/gsettings rather than from fontconfig files, so chromium and other gtk applications will just work once you set font rendering settings in your DE (if it sets the settings for gtk). |
Can the telegram desktop be adapted to use one of the snapcraft extensions which provide this functionality automatically? see https://snapcraft.io/docs/snapcraft-extensions |
No, kde-neon extension is garbage. Here I stated why. |
@soredake will font style be right if you run Telegram with XDG_CURRENT_DESKTOP=GNOME? |
Yes, with "GNOME" rgb is applied to telegram fonts, but hinting (i set it to medium, default is slight) is not. Save picture and zoom to maximum to see difference. |
|
btw, does chromium have the same problem? |
Do i need to run it in snap or host system? |
on host |
So snap doesn't really support fontconfig even with extensions. Chromium works with rgba just because gtk reads settings from Xft (Qt does the same if |
@Aokromes looks like you can close the issue, it's an issue with snap itself |
@anonymouse64 can you reopen my launchpad issue? Because using extensions is clearly not an option. |
Sad that it does not read |
It reads, as I can see in Qt code. The difference might be due to another reason (e.g. the difference in freetype versions). |
Or it could be due to some more fontconfig-specific settings like lcd filter |
So, i've done https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1916867 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Originally reported here https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1916342
Steps to reproduce
Expected behaviour
Snap should import my font settings from ~/.config/fontconfig/fonts.conf and use rgb subpixel rendering
Actual behaviour
Telegram from snap uses default grayscale rendering, due to not importing user font settings.
Configuration
Operating system: Kubuntu 20.10
Version of Telegram Desktop: 2.5.9
Installation source (Linux Only) - the official website / GitHub releases / flatpak / snap / distribution package: Snap
Used theme:
Logs:
Insert log.txt here (if necessary)The text was updated successfully, but these errors were encountered: