[Interest] Qt 5.8 font detection vs Qt 5.3.2 font detection
Nguyen Huu Minh
HuuMinh.Nguyen at vandewiele.com
Mon May 15 08:34:35 CEST 2017
I accidently replied to Nikos only.
We also tried recompiling Qt following the instructions on this link
http://doc.qt.io/qt-5/linux-requirements.html,
http://doc.qt.io/qt-5/linux-requirements.html> but it did not seem to
make difference.
I understand the fontconfig is responsible for finding fonts, but is it the qxcb platform plugin that decides where and
how fonts are loaded for a Qt app?
Greetings,
Minh
-----Original Message-----
From: Nikos Chantziaras [mailto:realnc at gmail.com]
Sent: vrijdag 12 mei 2017 22:26
To: interest at qt-project.org
Subject: Re: [Interest] Qt 5.8 font detection vs Qt 5.3.2 font detection
When you compiled Qt, did you make sure fontconfig support was enabled?
Is the fontconfig development package (probably called "fontconfig-dev"
or something similar) installed on the system?
On 05/10/2017 06:29 PM, Nguyen Huu Minh wrote:
> Hello,
>
> My apologies if this question has been asked before. We are upgrading
> our Qt application running on Lubuntu 32-bit from Qt 5.3.2 to Qt 5.8.
> One of the issues we have ran into is font handling. The Qt 5.3.2
> version of our application detects the system fonts fine (the
> directories under /usr/share/fonts). However when starting the Qt 5.8
> version we get this error:
>
> “QFontDatabase: Cannot find font directory”
>
> The directory that QFontDatabase looks at is
> “/usr/local/lib/lib/fonts”, which of course does not exists.
>
> The Qt 5.3.2 we use this the one that was provided by qt.io. The Qt
> 5.8 version we compiled from source on a virtual machine.
>
> We can get one of the directories to work by setting QT_QPA_FONTDIR,
> but our fonts are scattered over many directories.
>
> What is the proper way of solving this problem?
>
> Did we forget to configure some setting when compiling Qt 5.8 or has
> there been a change in behaviour and do we need to move all our fonts
> to one location?
>
> Greetings,
>
> Huu Minh Nguyen
>
> R&D Project Engineer Electronics
>
> HuuMinh.Nguyen at vandewiele.com <mailto:HuuMinh.Nguyen at vandewiele.com>
>
> ----------------------------------------------------------------------
> --
>
> Van de Wiele Company or its affiliates do not accept legal
> responsibility for the contents of this message. The views or
> opinions presented are solely those of the author and do not
> necessarily represent those of Van de Wiele Company or any of its affiliates.
>
> ----------------------------------------------------------------------
> --
>
>
>
> _____________
>
> Mail Disclaimer <http://www.vandewiele.com/legal#/mail-disclaimer-en>
>
>
>
_____________
Mail Disclaimer<http://www.vandewiele.com/legal#/mail-disclaimer-en>
More information about the Interest
mailing list