Bug 1981500 - [f34] some snaps are having font display issues
Summary: [f34] some snaps are having font display issues
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: fontconfig
Version: 35
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-12 17:17 UTC by David Vallee Delisle
Modified: 2022-12-07 11:28 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-12-07 11:28:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Vallee Delisle 2021-07-12 17:17:04 UTC
Description of problem:
Installing some snaps like codium are having font issues in dialog windows.

This has been widely discussed upstream [1]

Tried multiple workarounds and none of them are working:
~~~
sudo rm /var/cache/fontconfig/*
rm ~/.cache/fontconfig/*
rm -f ~/snap/codium/current/.cache/
fc-cache -r -v
snap run --shell codium
fc-cache -r -v
exit
~~~

I also tried this with VScodium running

Arch wiki [a] suspects it's an issue caused by fontconfig>=2.13.91 


Version-Release number of selected component (if applicable):
fontconfig-2.13.93-6.fc34.x86_64
snapd-selinux-2.51-1.fc34.noarch
snap-confine-2.51-1.fc34.x86_64
snapd-2.51-1.fc34.x86_64


How reproducible:
All the time

Steps to Reproduce:
1. snap install codium
2. Open Folder dialog or any kind of dialog

Actual results:
All the text is square instead of readable characters

Expected results:
We should be able to read the text.

Additional info:


[a] https://wiki.archlinux.org/title/Talk:Snap

[1]
~~~
https://forum.snapcraft.io/t/snapped-app-not-loading-fonts-on-fedora-and-arch/12484/39
https://forum.inkdrop.app/t/snap-with-no-visible-letters-in-system-dialogs-on-fedora/2077/3
https://wiki.archlinux.org/title/Talk:Snap
https://githubmemory.com/repo/snapcrafters/codium/issues/6
https://github.com/VSCodium/vscodium/issues/426
~~~

Comment 1 Akira TAGOH 2021-08-19 03:35:29 UTC
The problem is that the old version of fontconfig can't deal with variable fonts properly. the solution is indeed to bump the cache version though, removing variable fonts from the system could be a workaround if no strong reason to keep it there.

You may have two variable fonts installed. one is google-noto-sans-sinhala-vf-fonts which is used for Sinhala. another one is Cantarell-VF.otf included in abattis-cantarell-fonts. it may be hard to remove the package because it is the default system UI fonts in GNOME. just FYI.

Comment 2 Akira TAGOH 2022-03-02 11:31:43 UTC
This issue should be fixed in 2.13.96 for rawhide and f36. but we can't update the package for f34 and f35 because the changes made in this release changes some default behavior. I'll keep this open until f35 is EOL'd.

Comment 3 Ben Cotton 2022-11-29 17:00:11 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 4 Akira TAGOH 2022-12-07 11:28:07 UTC
This has already been fixed in f36 as noted. so closing.


Note You need to log in before you can comment on or make changes to this bug.