You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2016/07/20 21:25:49 UTC
svn commit: r1753612 -
/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/TextPosition.java
Author: tilman
Date: Wed Jul 20 21:25:48 2016
New Revision: 1753612
URL: http://svn.apache.org/viewvc?rev=1753612&view=rev
Log:
PDFBOX-2852: clarify javadoc
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/TextPosition.java
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/TextPosition.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/TextPosition.java?rev=1753612&r1=1753611&r2=1753612&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/TextPosition.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/text/TextPosition.java Wed Jul 20 21:25:48 2016
@@ -159,7 +159,9 @@ public final class TextPosition
}
/**
- * Return the string of characters stored in this object.
+ * Return the string of characters stored in this object. The length can be different than the
+ * CharacterCodes length e.g. if ligatures are used ("fi", "fl", "ffl") where one glyph
+ * represents several unicode characters.
*
* @return The string on the screen.
*/
@@ -480,7 +482,7 @@ public final class TextPosition
/**
* Get the widths of each individual character.
*
- * @return An array that is the same length as the length of the string.
+ * @return An array that has the same length as the CharacterCodes array.
*/
public float[] getIndividualWidths()
{