Ian Hobson wrote: > Hi All, > > Cracked it - but its a right kludge. > > After the subscript I change the font, and put a character in another > font with suitable setCharAdvance to reposition the write point. I set > the colour to white so it can't be seen. > > Would it be better to switch to RTL and put the sub-script out a second > time? > > What does the team think?
I'm sorry, I was away from the list for a while. Why not use a generic tag on the Chunk. This example is used to add ellipses and boxes: http://1t3xt.info/examples/browse/?page=example&id=67 but you could easily adapt it to add text in subscript or superscript. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php