Score:2

fontconfig that survives Firefox snap updates?

cn flag

Is there some way to have a custom fontconfig for the Snap-distributed Firefox that survives Firefox updates?

Background

I have a custom fontconfig at ~/.config/fontconfig/fonts.conf which worked fine when Firefox was installed via apt. With 21.10 distributing Firefox via Snap, it doesn't register my custom config unless it's in ~/snap/firefox/<somenumber>/.config/fontconfig/fonts.conf.

The problem is <somenumber> seems to change on update so I'm going to have to apply this over and over potentially. I tried dropping the file in ~/snap/common/.config/fontconfig/fonts.conf and even /etc/fonts/conf.d/99-custom-fonts.conf but those don't seem to be loaded.

Score:1
uz flag

As regards ~/snap/firefox/<somenumber>/... not surviving snap updates, I'm not aware of any solution. This comment indicates that the issue is identified (even if that thread is about the Chromium snap).

But putting it in /etc/fonts/conf.d will hopefully work soon. I brought up the topic in this Discourse comment, and there is already a pull request which is said to be the first step in a fix.

Edit:

Maybe I stumbled upon a solution after all: Simply put user specific conf files in conf.d/ instead of editing fonts.conf. Please see this comment.

cn flag
Makes sense. I'll keep an eye on that pull request. Was not even sure how to find something like that (was on the second page of Google results for this one before deciding to ask here). Thanks!
Gunnar Hjalmarsson avatar
uz flag
@dbazile: I filed [this bug](https://bugs.launchpad.net/snapcraft/+bug/1948980).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.