How does LMMS synthesize midi with SF2?

Anything that doesn't fit into other topics goes here!
Mainly, does it happen in the app or in a library the app depends on?
I got impatient so I queried the source code and it looks like there is a fluidsynth plugin.

https://github.com/LMMS/lmms/search?p=1&q=sf2

I also looked at the dependencies and I see libfluidsynth2 (>= 2.0.5). I also see a libfluidsynth3 that I don't have installed, but it is a dependency of the fluidsynth application.
If you have Windows, libfluidsynth is installed with LMMS so no need to worry. The fluidsynth simply allows the LMMS to PLAY soundfonts.