Fc-match configuration different inside and outside the flatpak bundle

It is my understanding that the fonts from the system are shared to the flatpak environment, so i was expecting that fontconfig would behave the same inside than outside, but it does not.

In my system
tsdgeos@xps:~:$ fc-match Helvetica
NimbusSans-Regular.otf: “Nimbus Sans” “Regular”

In flatpak
tsdgeos@xps:~:$ flatpak run --command=sh --devel org.kde.okular
tsdgeos@xps:~:$ fc-match Helvetica
LiberationSans-Regular.ttf: “Liberation Sans” “Regular”

NimbusSans-Regular.otf is available in flatpak too though
tsdgeos@xps:~:$ fc-cat | grep NimbusSans-Regular.otf
“NimbusSans-Regular.otf” 0 “Nimbus Sans:familylang=en:style=Regular:stylelang=en:…”

Any idea why that would happen?

I think configuration from the host is not available in Flatpak environment as it’s not backward/forward compatible. There are some details at https://github.com/flatpak/flatpak/issues/1563.

Ok, so it’s one of those things that’s still not polished enough in flatpak. Thanks :slight_smile: