1
Python and Java API / Re: QFontDatabase: Cannot find font directory /home/ec2-user/photoscan-pro/lib/fonts
« on: June 29, 2018, 12:28:45 PM »
Hi,
I'm having the same issue where my report is exported with only black squares instead of text. I'm working on a CentOS 7.4 Linux machine with fonts in a number of sub-directories under
I've tried setting the QT_QPA_FONTDIR variable to point to one of these sub-directories but I get the same results everytime. Is there a specific font package that Agisoft requires (like Times, Courier, Helvetica)?
After setting the variable to the font directory I no longer get the error:
So I guess the problem is with the font packages?
Thanks,
Ben
EDIT: It works now for some reason. I just need to point QT_QPA_FONTDIR to any of the available font folders (e.g., export QT_QPA_FONTDIR=/usr/share/fonts/open-sans) before running my python scripts.
I'm having the same issue where my report is exported with only black squares instead of text. I'm working on a CentOS 7.4 Linux machine with fonts in a number of sub-directories under
Code: [Select]
/usr/share/fonts/ (e.g., Code: [Select]
/usr/share/fonts/open-sansI've tried setting the QT_QPA_FONTDIR variable to point to one of these sub-directories but I get the same results everytime. Is there a specific font package that Agisoft requires (like Times, Courier, Helvetica)?
After setting the variable to the font directory I no longer get the error:
Quote
QFontDatabase: Cannot find font directory - is Qt installed correctly?
So I guess the problem is with the font packages?
Thanks,
Ben
EDIT: It works now for some reason. I just need to point QT_QPA_FONTDIR to any of the available font folders (e.g., export QT_QPA_FONTDIR=/usr/share/fonts/open-sans) before running my python scripts.