pkg2appimage icon indicating copy to clipboard operation
pkg2appimage copied to clipboard

Problem with fonts loading for RapidPhotoDownloader AppImage

Open aferrero2707 opened this issue 6 years ago • 1 comments

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!

aferrero2707 avatar Aug 01 '17 19:08 aferrero2707

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.

probonopd avatar Aug 01 '17 21:08 probonopd