This issue arises when trying to run a snap built for a python tkinter application:
_tkinter.TclError: failed to allocate font due to internal system font engine problem
Is this a problem that is solved for gtk apps using the gtk3-desktop plug already? Or perhaps it is a bug? I don’t know much about fontconfig or how fonts are found on the system.
This has also been posted on the askubuntu forum but with seemingly no solution:
Here are the parts from my snapcraft.yaml file:
grade: stable
confinement: devmode
icon: ../img/logo.png
apps:
dataexplore:
command: bin/dataexplore
plugs: [home,x11,unity7]
parts:
dataexplore:
plugin: python
python-version: python3
source: ../
stage-packages:
[python3-tk,fontconfig-config,fonts-dejavu-extra]
files: #to deal with problem finding init.tcl
plugin: dump
source: /usr/share/tcltk/
organize:
'*': ./usr/lib/