Shujaat- Thank you for the excellent description of what you are doing. This is one of the reasons that I like to ask questions before I just start exposing properties in an API. I would much rather just give you what you need, than give you the components and then force you to do all the math.
One proposal here has been to provide the ability to get a list of sub-TextRenderInfo objects - one for each character. This would certainly do the trick, but I do have some concerns about performance with that option (there are a lot of calculations going on...)... I wonder if it would be sufficient to have a method that returns an array of offsets that specify the distance along the baseline that each character appears at? Note that super/subscript will wind up in different Tj operators (I'm pretty sure that nothing akin to Ts can occur in the middle of a Tj operator), so the baseline for superscript rendering will already take the rise into account... If you need the literal bonding box of each individual character (not just the ascent/descent as defined for the font as a whole), this might be considerably more difficult - right now, the font object doesn't appear to provide the height of each glyph, and I'm not sure what would be required to make that happen. Please let me know what you think... I also would like to get Michael's input - do we really need a full-on TextRenderInfo object, or could we provide something considerably simpler for providing info about each individual character? -- View this message in context: http://itext-general.2136553.n4.nabble.com/PdfContentStreamProcessor-not-handling-TJ-operator-correctly-maybe-tp4656117p4656304.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
