Dominika,

Dominika Tkaczyk-2 wrote
> The first one is about the TextRenderInfo's constructor, in which
> textMatrix passed as an argument is multiplied by gs.ctm. As a result,
> subTextMatrix is multiplied by gs.ctm again for every new TextRenderInfo
> object created for an individual character, if I am not mistaken this
> shouldn't be happening.

At first glance you seem to be right. Good catch.

Dominika Tkaczyk-2 wrote
> The second problem is about character width, which i compute like this:
> charTri.getDescentLine().getLength(). This method relies on getStringWidth
> method, which adds character spacing to every character of the string,
> including the last one.

Right, getDescentLine is not the line from the start of the first to the end
of the last character of the string the given TextRenderInfo represents, it
is the line from that string to the (possible) next one. A method for your
use is still required.

Actually that is a special case of getting the encompassing rectangle of the
string. Thus, I would propose adding a method that returns that rectangle.

Regards, Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/PdfContentStreamProcessor-not-handling-TJ-operator-correctly-maybe-tp4656117p4656392.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
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

Reply via email to