not using the minimal plugin, as we might need fonts

This commit is contained in:
Uwe Rathmann 2020-03-17 12:01:50 +01:00
parent 167f7f628c
commit ddcb02bd92
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -5,6 +5,7 @@ QT += svg
CONFIG += standalone
CONFIG -= app_bundle
CONFIG -= sanitize
DESTDIR = $${QSK_OUT_ROOT}/tools/bin