From ddcb02bd9270749eb2ab769477837e0795380af6 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 17 Mar 2020 12:01:50 +0100 Subject: [PATCH] not using the minimal plugin, as we might need fonts --- tools/svg2qvg/main.cpp | 10 +++++++++- tools/svg2qvg/svg2qvg.pro | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/svg2qvg/main.cpp b/tools/svg2qvg/main.cpp index 233c98f9..0210edaa 100644 --- a/tools/svg2qvg/main.cpp +++ b/tools/svg2qvg/main.cpp @@ -33,13 +33,21 @@ int main( int argc, char* argv[] ) return -1; } +#if 0 + /* + When there are no "text" parts in the SVGs we can avoid + the costs of initializing not needed fonts + by using the minimal plugin. + */ + qputenv( "QT_QPA_PLATFORM", "minimal" ); +#endif + #if 1 /* When having a SVG with specific font assignments Qt runs on qGuiApp to load a default font. Makes no sense in this context, but to avoid having segfaults ... */ - qputenv( "QT_QPA_PLATFORM", "minimal" ); QGuiApplication app( argc, argv ); #endif diff --git a/tools/svg2qvg/svg2qvg.pro b/tools/svg2qvg/svg2qvg.pro index fb3c70dd..e2b81f73 100644 --- a/tools/svg2qvg/svg2qvg.pro +++ b/tools/svg2qvg/svg2qvg.pro @@ -5,6 +5,7 @@ QT += svg CONFIG += standalone CONFIG -= app_bundle +CONFIG -= sanitize DESTDIR = $${QSK_OUT_ROOT}/tools/bin