-
Notifications
You must be signed in to change notification settings - Fork 445
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
Stop fontconfig from loading from host’s /etc/fonts/conf.d #4257
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Gunnar, I was looking at doing a similar change and asked James for his opinion today and he seemed to agree it was the right thing to do.
Note that the wrapper in snapcraft isn't used anymore in core22, that's confusing and #4250 should help clarifying. Could you also submit the fix against https://github.com/snapcore/snapcraft-desktop-integration/ ?
I've tested the change in firefox and can confirm that
$ LC_CTYPE=ja_JP.UTF-8 fc-match -s sans-serif
correctly returns NotoSansCJK-Regular.ttc as preferred choice now
@seb128: Oh. I submitted canonical/snapcraft-desktop-integration#13 too. Should this one be closed then? |
No because as said core20 snaps still use the snapcraft scripts and we still have core20 based snaps (firefox/stable for example) |
But we haven't seen any issue with core20 snaps, have we? After all, people may have put things in |
Testing firefox/stable (based on core20) it seems it returns the same wrong font for japanese? But yes you are right that we didn't get real complains until now so for stability reason we might to do the change only for core22... |
It's not black and white. Consistency is good, which speaks for merging this PR. I have no strong opinion. As regards why this became a problem in lunar, it seems to me that the move from |
I tested the proposed change on FF jammy / core20, and it didn't fall out well, so suddenly I have a strong opinion. 😉 Before change
(I have After change
Chinese was 'saved' through the presence of I think the reason is that So if we would drop the system’s If it is desirable to make FF jammy / core20 consistent with lunar and mantic in this respect, |
Thanks Gunnar. At least I had added language-selector-common to the list of packages when I submitted the PR to include the fonts config in gnome-42-2204 but that's a good sign than we should have some process to ensure the fonts configuration in the sdk is updated when we do change in Ubuntu |
@seb128: I just created ubuntu/gnome-sdk#157 . Please confirm that it's a reasonable step to take. |
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #4257 +/- ##
==========================================
+ Coverage 88.96% 88.98% +0.01%
==========================================
Files 295 296 +1
Lines 20151 20192 +41
==========================================
+ Hits 17928 17968 +40
- Misses 2223 2224 +1 see 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@kenvandine: Do you have a minute to merge this? |
Fixes: https://launchpad.net/bugs/2025651
At the moment the snaps in at least lunar and mantic load font configuration both from
gnome-42-2204
and from the host system’s/etc/fonts/conf.d
. This has proved to confuse fontconfig and result in unexpected issues. Stopping the snaps from loading from/etc/fonts/conf.d
seems to fix the issue.This PR reverts part of 407dc755, which is sad IMO. But it’s a result of the reluctance to use font configuration from the host system as expressed in this comment, and for now the proposed change is the easiest way to stop fontconfig from being confused.
make lint
?pytest tests/unit
?