Can I set font properties for a string in java.
A String doesn't have a font, as it's completely separate from any way to display it. Fonts are related to the user interface components you're using to present the String to your users, how to set it would depend on those user interface components.