The use of soundfonts in and of itself is not illegal. Soundfonts are digital sound files that can be used to create music. Yet, the soundfonts could contain copyrighted material in the samples. So using those Soundfonts could lead to copyright infringement claims and lawsuits. Unless you have permission, you cannot use them in released music.