I've been trying to use Java render a string that includes a subscript. I thought that AttributedString looked like a straightforward solution, but I don't seem to be able to get subscripts to work. I've tried a bunch of different combinations. Could somebody point me towards a solution?
The code below renders to an image. The results are very attractive (yay Java font rendering!) but for the X-zero term, the zero is not moved to a subscript position.