From 4c5e6562834158fe554e123bc527075cf0db7070 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 13 Nov 2018 09:42:44 +0100 Subject: [PATCH] using the minimal platform --- tools/svg2qvg/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/svg2qvg/main.cpp b/tools/svg2qvg/main.cpp index af79c63b..df9f87db 100644 --- a/tools/svg2qvg/main.cpp +++ b/tools/svg2qvg/main.cpp @@ -33,8 +33,15 @@ int main( int argc, char* argv[] ) return -1; } - // we need an application object, when the SVG loads fonts +#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 QSvgRenderer renderer; if ( !renderer.load( QString( argv[1] ) ) )