From 539efdff68c511065be8c526205f66710837d871 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 6 Nov 2018 09:02:58 +0100 Subject: [PATCH] svg2qvg needs an application instance in case of SVGs, that are loading fonts --- tools/svg2qvg/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/svg2qvg/main.cpp b/tools/svg2qvg/main.cpp index 0eb5aa7d..af79c63b 100644 --- a/tools/svg2qvg/main.cpp +++ b/tools/svg2qvg/main.cpp @@ -15,6 +15,7 @@ #include #endif +#include #include #include #include @@ -32,6 +33,9 @@ int main( int argc, char* argv[] ) return -1; } + // we need an application object, when the SVG loads fonts + QGuiApplication app( argc, argv ); + QSvgRenderer renderer; if ( !renderer.load( QString( argv[1] ) ) ) return -2;