This also works if escaping is not desired.

textPane.setText("<span style='font-size: 20pt'>Big</span>");