"Could not find any font:" error on Solus & Fedora

Thanks @jamesh. You’re right we’re not including the Noto font anywhere - I think it might be required by a library we’re using. Either way it should fall back to sans, or failing that any available font as it does without snap packaging. The package does work as it should on all the versions of Ubuntu we’ve tested with, it just seems to be Fedora and Solus at the moment that has this problem.

We did try using the desktop plug, but found this stopped all fonts working. No error was thrown, all text would just fail to render. A little bit more digging on this revealed that the sandboxing was blocking requests for fonts on the machine - even when they were included locally in the Snap package (e.g. Lato). It was my understanding on-machine font support with the desktop plug is due to land with 2.30 - but correct me if I’m wrong with that.

Here’s the list of plugs and stage packages we’ve been using…

  • home
  • camera
  • x11
  • unity7
  • browser-support
  • network
  • network-bind
  • gsettings
  • pulseaudio
  • opengl

…and stage packages…

  • libnss3
  • libnotify4
  • libappindicator1
  • libxtst6
  • libxss1
  • fontconfig-config
  • gconf2
  • libasound2
  • pulseaudio
  • libgconf-2-4
  • fonts-liberation
  • ttf-dejavu-core