Some fonts looks sometimes ugly
Opened this issue · 5 comments
I guess this is because flatpak by design can't access to your system font configuration. You may try with flatpak run --filesystem=xdg-config/fontconfig org.mozilla.Thunderbird
but there is no general solution.
Unfortunately, that workaround does not help
Among other things you may try are:
Install xdg-desktop-portal-gtk
, gsettings-desktop-schemas
and xsettingsd
, reboot and start thunderbird again.
If aove still doesn't help you may try:
cp /etc/fonts/conf.d/*.conf ~/.var/app/org.mozilla.Thunderbird/config/fontconfig/conf.d/
I encountered the same problem on openSUSE tumbleweed a couple of months ago (I have since switched to arch and the issue does not seem to persist there, so it might be an issue with the way openSUSE packages something). At the time, I solved it by create a fontconfig file at ~/.var/app/org.mozilla.Thunderbird/config/fontconfig/fonts.conf
with the following content (originally from flatpak/flatpak#2861 (comment)):
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- Disable bitmap fonts. -->
<selectfont><rejectfont><pattern>
<patelt name="scalable"><bool>false</bool></patelt>
</pattern></rejectfont></selectfont>
</fontconfig>
Btw, this workaround can be applied on the flatpak-level as well, by installing the above conf file as /app/etc/fonts/local.conf
.