Formatting Text

I have a input text box and i want to change the font for the text entered by the user as the user selects the font with a button.

Could anyone help out?