[Main] set Coin environment variable

as discussed in https://forum.freecadweb.org/viewtopic.php?f=10&t=56386&start=10 we need to set this environment variable for Coin on Windows
This commit is contained in:
donovaly
2021-03-07 03:30:02 +01:00
committed by wmayer
parent be7cc40106
commit 4484e0969f

View File

@@ -146,6 +146,10 @@ int main( int argc, char ** argv )
#endif
#if defined (FC_OS_WIN32)
// we need to force Coin not to use Freetype in order to find installed fonts on Windows
// see https://forum.freecadweb.org/viewtopic.php?p=485142#p485016
_putenv("COIN_FORCE_FREETYPE_OFF=1");
int argc_ = argc;
QVector<QByteArray> data;
QVector<char *> argv_;