Open d1Bihkte opened 1 week ago
I'm not a fontconfig expert, but I suspect that this may be a consequence of not including /etc/fonts/conf.d
configuration from the host: https://github.com/flatpak/flatpak/issues/1563
I lensed a bit of text from one of your screenshots ("ප්රචාරයට ප්රශස්තිකරණය, පටිගත කිරීම දෙවනුව"), and I see a similar difference in rendering between host and flatpak apps on Fedora 41.
fc-match -v ':charset=0DA0' | grep file
on the host returns /usr/share/fonts/google-noto-vf/NotoSerifSinhala[wght].ttf
vs /usr/share/fonts/gnu-free/FreeSerif.ttf
inside a flatpak sandbox (using flatpak run --command=sh ...
to open a shell). Do you see similar results?
Do you see similar results?
Yes
Host: file: "/usr/share/fonts/truetype/noto/NotoSansSinhala-Regular.ttf"(s)
Flatpak: file: "/run/host/fonts/truetype/freefont/FreeSerif.ttf"(s)
Thank you. Currently i use .deb and snap apps. I'll try to forget about flatpak till developers fix this.
cc: @alexlarsson @smcv
Please don't arbitrarily @
specific developers just because you find a particular issue annoying. Our time is limited and we are not necessarily the most knowledgeable person about a particular issue.
Unfortunately, it is intentional that Flatpak apps do not copy all font settings from the host system, because that would sometimes break apps completely. Flatpak needs to be able deal with the host system and the app having different versions of libfontconfig
- on some systems it will be newer in the app than on the host system, and on some systems it will be the other way around. Either of these can break apps, because the configuration language used for font settings depends on the libfontconfig
version.
I have pretty much the same issue. I know for a fact that it happend after updating all flatpaks via flatpak update. Before i didn't have this issue. And it is only on wayland. On X11 i don't run into that issue. If needed i can provide a list of the Apps that got updated (it is stored on my other computer). In case it is helpful.
Checklist
Flatpak version
1.14.6
What Linux distribution are you using?
Ubuntu
Linux distribution version
24.04.1 LTS
What architecture are you using?
x86_64
How to reproduce
Notes: I couldn't find this bug on any .deb apps or snap apps. Ubuntu default font for Sinhala is Noto Sans / Serif Sinhala.
It seems that Flatpak apps use Dejavu Sans for Sinhala. They do not have a special variant for Sinhala and it's not a readable font.
Expected Behavior
OBS Studio
ONLYOFFICE
Vivaldi
Actual Behavior
OBS Studio
ONLYOFFICE
Vivaldi
Additional Information
This bug is related to https://github.com/flatpak/flatpak/issues/5730 but i decide to open separate issue because,
I would like to track the issue here and provide additional information if needed.
https://github.com/flatpak/flatpak/issues/5675