App cannot find font in snap

If the applications uses a hardcoded, absolute path like that, you can use a layout: Snap layouts | Snapcraft documentation

You can check what your snap “sees” in its namespace by running snap run --shell critterding and then accessing /usr/share/fonts/TTF/DejaVuSans.ttf (ls, stat, …).

layout:
  /usr/share/fonts/TTF/DejaVuSans.ttf:
    symlink: $SNAP/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
1 Like