Startup error: 'twain.exe: The procedure entry point "FT_Done_MM_Var" could not be located in the DLL "C:\Program Files\GIMP 2\32\bin\libfontconfig-1.dll"'
GIMP version: 2.10.4
Operating System: Windows 10 x64
Package: Windows x64 installer from gimp.org
Description of the bug / Reproduction steps
Starting with GIMP 2.10.0 GIMP gave me the following error on startup (translated from German): twain.exe: The procedure entry point "FT_Done_MM_Var" could not be located in the DLL "C:\Program Files\GIMP 2\32\bin\libfontconfig-1.dll"
After clicking "OK" there's a second similar message: twain.exe: The procedure entry point "FT_Done_MM_Var" could not be located in the DLL "C:\Program Files\GIMP 2\32\bin\libcairo-2.dll"
After that GIMP starts normally, but I can't create a new image from my twain source/scanner (Epson WP-4525) because that menu point is missing.
Up to GIMP 2.10.3 I could help myself by downloading a different (older?) version of libfontconfig-1.dll and libcairo-2.dll from https://www.dll-files.com/ and replacing GIMP's libraries with these files. (I also needed to download and copy libpng14-14.dll to the "bin" directory because the other version of libcairo-2.dll needed it). After that GIMP was starting up without any error messages and I could also use my Epson scanner interface to create a new image from inside GIMP.
But now, after updating GIMP to 2.10.4 and replacing just libfontconfig-1.dll, GIMP does no start up anymore. It just gives me the error message (again translated from German): Application error: The application could not be started correctly (0xc000007b). Click "OK" to close the application.
Reproduction
Always reproducable; happens at every start of GIMP
Additional information
Here's my output of gimp --version --verbose
[Invalid UTF-8] GNU Image Manipulation Program Version 2.10.4
git-describe: Unknown, shouldn't happen
C compiler:
Using built-in specs.
COLLECT_GCC=W:msys64-gtk2mingw64\x08in\x86_64-w64-mingw32-gcc.exe
COLLECT_LTO_WRAPPER=W:/msys64-gtk2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-7.3.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-time=yes --enable-libstdcxx-filesystem-ts=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev2, Built by MSYS2 project' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld
Thread model: posix
gcc version 7.3.0 (Rev2, Built by MSYS2 project)
verwendet GEGL Version 0.4.4 (gebaut gegen Version 0.4.4)
verwendet GLib Version 2.56.1 (gebaut gegen Version 2.56.1)
verwendet GdkPixbuf Version 2.36.12 (gebaut gegen Version 2.36.12)
verwendet GTK+ Version 2.24.32 (gebaut gegen Version 2.24.32)
verwendet Pango Version 1.42.1 (gebaut gegen Version 1.42.1)
verwendet Fontconfig Version 2.13.0 (gebaut gegen Version 2.13.0)
verwendet Cairo Version 1.15.12 (gebaut gegen Version 1.15.12)