You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by ga...@apache.org on 2014/08/31 21:36:14 UTC
svn commit: r1621622 -
/xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java
Author: gadams
Date: Sun Aug 31 19:36:13 2014
New Revision: 1621622
URL: http://svn.apache.org/r1621622
Log:
adjustChunkOffests assumes it is using per-node runs, not per-chunk runs
Modified:
xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java?rev=1621622&r1=1621621&r2=1621622&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/gvt/renderer/StrokingTextPainter.java Sun Aug 31 19:36:13 2014
@@ -254,15 +254,15 @@ public class StrokingTextPainter extends
// adjusting chunk offsets.
perChunkRuns = reorderTextRuns(chunk, perChunkRuns);
+ // Append per chunk runs to overall node runs.
+ perNodeRuns.addAll(perChunkRuns);
+
// Adjust according to text-anchor property value.
chunkACIs[currentChunk].first();
if (chunk != null) {
- location = adjustChunkOffsets(location, perChunkRuns, chunk);
+ location = adjustChunkOffsets(location, perNodeRuns, chunk);
}
- // Append per chunk runs to overall node runs.
- perNodeRuns.addAll(perChunkRuns);
-
prevChunk = chunk;
currentChunk++;