Dynamic User selected fonts

I have a list of like 10 fonts, how do I allow users to change fonts from the dropdown without using so many conditions?

I’d suggest using custom CSS for this and ideally setting the font-face property to !important so that it’s prioritized