From 5a17a9fbeda03cdda53d603e2b7d08f857f18a90 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Wed, 26 Jul 2017 11:56:58 +0200 Subject: [PATCH] always using the same default font for the examples --- support/SkinnyFont.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/support/SkinnyFont.cpp b/support/SkinnyFont.cpp index 362468a9..bd462284 100644 --- a/support/SkinnyFont.cpp +++ b/support/SkinnyFont.cpp @@ -8,6 +8,7 @@ #include #include #include +#include static void foolFontconfig() { @@ -41,5 +42,11 @@ void SkinnyFont::init( QGuiApplication* ) QFontDatabase::addApplicationFont( ":/fonts/Roboto-Regular.ttf" ); QFontDatabase::addApplicationFont( ":/fonts/DejaVuSans.ttf" ); + + /* + The default initialization in QskSkin sets up its font table + with using the application font for the default font role. + */ + QGuiApplication::setFont( QFont( "DejaVuSans", 12 ) ); }