Qt fonts folder is hardcoded in Qt library
Summary
When using Binpkgs comming from someone else or the CI. fonts cannot be loaded on linux.
Steps to reproduce
Check last version of CI Binpkgs, build a GUI app!
You should have something like this:
QFontDatabase: Cannot find font directory /home/build/sight/Install/Release/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.
Dev environment
- OS: Linux
- CMake version: 3.12
- Compiler: gcc 7.3
- Build type: release
- Commit: dev
What is the current bug behavior?
It seems that path to fonts directory is hard coded in Qt library.
What is the expected correct behavior?
fonts should be loaded.
Relevant logs and/or screenshots
QFontDatabase: Cannot find font directory /home/build/sight/Install/Release/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.
Possible fixes
Two options:
- build Qt with fontconfig support.
- Load fonts at start of WorkerQt.