Package: libqt5gui5 Version: 5.7.1+dfsg-3+deb9u1 Severity: normal Dear Maintainers,
please build plugins/platforms/libqoffscreen.so to be linked to fontconfig. What I experience: Running an application with QT_QPA_PLATFORM=offscreen fails to find any fonts. What I expect: An application running with QT_QPA_PLATFORM=offscreen find the fonts installed on the system (like any X11 server does). Background: I'm running an application for converting HTML pages into PDF (much like wxhtmltopdf). To save resources I want to not run a xfvb server for rendering, but use QT_QPA_PLATFORM=offscreen. Unfortunately the offscreen platform plugin does not find any fonts. Other distributions link libqoffscreen.so to fontconfig, e.g. Fedora, see https://fedora.pkgs.org/29/fedora-updates-x86_64/qt5-qtbase-gui-5.11.3-1.fc29.x86_64.$ Qt supports an env-var QT_QPA_FONTDIR, but this has to be a directory, not a list of directories. Thus to make system-fonts available when using QT_QPA_PLATFORM=offscreen. one would need to link all fonts into one directory. Also thus would not take advantage of any caching otherwise done by fontconfig and the application would need to read all file in this directory to find the correct. font Thus using QT_QPA_FONTDIR is not a serious option. -- System Information: Debian Release: 9.8 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-8-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages libqt5gui5 depends on: ii fontconfig 2.11.0-6.7+b1 ii libc6 2.24-11+deb9u4 ii libdrm2 2.4.74-1 ii libegl1-mesa [libegl1-x11] 13.0.6-1+b2 ii libfontconfig1 2.11.0-6.7+b1 ii libfreetype6 2.6.3-3.2 ii libgbm1 13.0.6-1+b2 ii libgcc1 1:6.3.0-18+deb9u1 ii libgl1-mesa-glx [libgl1] 13.0.6-1+b2 ii libglib2.0-0 2.50.3-2 ii libharfbuzz0b 1.4.2-1 ii libice6 2:1.0.9-2 ii libinput10 1.6.3-1 ii libjpeg62-turbo 1:1.5.1-2 ii libmtdev1 1.1.5-1+b1 ii libpng16-16 1.6.28-1 ii libqt5core5a [qtbase-abi-5-7-1] 5.7.1+dfsg-3+deb9u1 ii libqt5dbus5 5.7.1+dfsg-3+deb9u1 ii libqt5network5 5.7.1+dfsg-3+deb9u1 ii libsm6 2:1.2.2-1+b3 ii libstdc++6 6.3.0-18+deb9u1 ii libudev1 232-25+deb9u8 ii libx11-6 2:1.6.4-3+deb9u1 ii libx11-xcb1 2:1.6.4-3+deb9u1 ii libxcb-glx0 1.12-1 ii libxcb-icccm4 0.4.1-1 ii libxcb-image0 0.4.0-1+b2 ii libxcb-keysyms1 0.4.0-1+b2 ii libxcb-randr0 1.12-1 ii libxcb-render-util0 0.3.9-1 ii libxcb-render0 1.12-1 ii libxcb-shape0 1.12-1 ii libxcb-shm0 1.12-1 ii libxcb-sync1 1.12-1 ii libxcb-xfixes0 1.12-1 ii libxcb-xinerama0 1.12-1 ii libxcb-xkb1 1.12-1 ii libxcb1 1.12-1 ii libxi6 2:1.7.9-1 ii libxkbcommon-x11-0 0.7.1-2~deb9u1 ii libxkbcommon0 0.7.1-2~deb9u1 ii zlib1g 1:1.2.8.dfsg-5 Versions of packages libqt5gui5 recommends: pn libqt5svg5 <none> pn mesa-utils <none> pn qt5-gtk-platformtheme <none> Versions of packages libqt5gui5 suggests: pn qt5-image-formats-plugins <none> pn qtwayland5 <none> -- no debconf information