I wrote a .c file, and then compiled it into .js and .wasm through emcc, why an error is reported:
Fontconfig error: Cannot load default config file: No such file: (null),
I know that the fonts.conf file in the local environment cannot be found in the browser, so I execute:
emcc -O1 --embed-file fonts.conf -s WASM=1 -s EXPORTED_FUNCTIONS=_getFont -s EXPORTED_RUNTIME_METHODS=ccall,cwrap test.o ./libfontconfig.a -o test.js
still error.