After following all the commands in building.md I still get on Debian 12 x86_64:
checking for fontconfig/fontconfig.h... no
configure: error: Could not find fontconfig!
checking for fontconfig/fontconfig.h... no
configure: error: Could not find fontconfig!