It is possible to let a user choose a font?

Hello.

I would like to know if it is possible to allow the user to choose the font with which the text information is displayed.

I would prefer to know for the situation where I have two Google Fonts and the user can choose from them and not for the default fonts in the system.
Thanks in advance for any support!

Choose Font.zip (44.7 KB)

textToChange.style.setProperty('font-family', 'Inter')
and corresponding ...

always disable 'protect from external styles'

4 Likes

Thank you Hans!
All the best! :partying_face:

also see an example here using css vars :

3 Likes