There's not much documentation on styling text with super and subscripts. After some searching I'm led to believe that it exists in JasperReports 1.2.6 and above (I'm currently using 1.2.7) and that the syntax is:
for superscripting and subscripting, respectively.
I've had problems getting either to work. I've also tried
also to no effect.
I've provided a report definition .jasper file (generated by iReport) and a data source .csv file (CSV) to show my super/subscripting "experiments" (zipped up in a folder as SupSubTest.zip).
If I'm doing something wrong I would appreciate some advice. In addition I would recommend updating the styled text example on the web to include super/subscripting.
does, in fact, work I would recommend implementing
as well for consistency with the existing styling syntax.
If there is indeed a bug with super/subscripting then here's notice of it.