From c5e44920ba1f6a75733b155d20f56d0ace4ac2ed Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Tue, 26 Jan 2016 10:45:19 +0100 Subject: Add user friendly warning to basic fontdb when there are no fonts Qt 5.7 no longer contains lib/fonts. This is a regression for users relying on Qt's own fonts when running on Embedded Linux systems without fontconfig. To alleviate the pain, show a friendly message about this. The old "is Qt installed correctly" note is out-of-date anyhow now. Change-Id: Idcb732fb65ed9c45529a0bcc3168227e0969bea0 Reviewed-by: Louai Al-Khanji --- src/platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/platformsupport/fontdatabases') diff --git a/src/platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp b/src/platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp index d2fadc957d..4b9d4690f3 100644 --- a/src/platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp +++ b/src/platformsupport/fontdatabases/basic/qbasicfontdatabase.cpp @@ -64,8 +64,9 @@ void QBasicFontDatabase::populateFontDatabase() QDir dir(fontpath); if (!dir.exists()) { - qWarning("QFontDatabase: Cannot find font directory %s - is Qt installed correctly?", - qPrintable(fontpath)); + qWarning("QFontDatabase: Cannot find font directory %s.\n" + "Note that Qt no longer ships fonts. Deploy some (from http://dejavu-fonts.org for example) or switch to fontconfig.", + qPrintable(fontpath)); return; } -- cgit v1.2.3