Workaround for this issue:
(in apps section)
apps:
some_app:
command: some_app
environment:
XDG_DATA_HOME: $SNAP/usr/share
FONTCONFIG_PATH: $SNAP/etc/fonts/conf.d
FONTCONFIG_FILE: $SNAP/etc/fonts/fonts.conf
Of course this only works in devmode. After switching to strict mode program in snap ends with error that it can't reach /etc/fonts/fonts.conf file. I think should be resolved by adding interface.
Workaround for this issue: DATA_HOME: $SNAP/usr/share G_PATH: $SNAP/etc/ fonts/conf. d G_FILE: $SNAP/etc/ fonts/fonts. conf
(in apps section)
apps:
some_app:
command: some_app
environment:
XDG_
FONTCONFI
FONTCONFI
Of course this only works in devmode. After switching to strict mode program in snap ends with error that it can't reach /etc/fonts/ fonts.conf file. I think should be resolved by adding interface.