AppImageCommunity / pkg2appimage

Tool and recipes to convert existing deb packages to AppImage
http://appimage.org
MIT License
691 stars 213 forks source link

Problem with fonts loading for RapidPhotoDownloader AppImage #266

Open aferrero2707 opened 7 years ago

aferrero2707 commented 7 years ago

I am trying to provide an AppImage package for the Rapid Photo Downloader program, which is a PyQt5-based application that allows to copy and organize pictures from digital cameras.

The current AppImage build scripts can be found on GitHub here (the relevant scripts are bootstrap2.sh and mkappimage). They already allow to generate a working AppImage package, but I have an issue with fonts that is really driving me crazy... When running as an AppImage, the program uses an ugly monospace font instead of the one inherited from the desktop UI theme.

This is how the application should look like under Mint 17.2 with the default Mint-X theme:

screen shot 2017-08-01 at 20 59 42

and this is how the program looks like when executing the AppImage:

screen shot 2017-08-01 at 21 00 09

I have used strace to check which font files are actually accessed by the application , and here is the result (left is the normal application, right is the AppImage):

screen shot 2017-08-01 at 21 06 55

As one can see, the AppImage falls back to the MonoSpace font instead of loading the DejaVuSans.ttf one. Note that other fonts are loaded correctly...

Does anybody have an hint of what could be the cause of this, or has anybody already run into a similar issue?

Thanks in advance!

probonopd commented 7 years ago

I'm clueless... trial end error is your friend here. I would start by sequentially deleting all font-related libraries from the AppImage, and retrying.