Take a look at the AttributedString class
AttributedString (Java Platform SE 6)
You can parse the formatting into attributes that can be added to the AttributedString, and a Graphics2D instance can...