aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-08-29 12:43:43 +0000
committerJeremias Maerki <jeremias@apache.org>2005-08-29 12:43:43 +0000
commitf8376cbe95b55975476e6e0b7385518dcd7c2c17 (patch)
treee3f4d31e67f35bda52f5e857d6a7cc433a5bf3f3 /src/java/org/apache
parent6e9f01380445f759699b16f43a37b360f075882a (diff)
downloadxmlgraphics-fop-f8376cbe95b55975476e6e0b7385518dcd7c2c17.tar.gz
xmlgraphics-fop-f8376cbe95b55975476e6e0b7385518dcd7c2c17.zip
Character positioning array can easily become too long so break them after every eigth value.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264130 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/fop/render/ps/PSRenderer.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/render/ps/PSRenderer.java b/src/java/org/apache/fop/render/ps/PSRenderer.java
index 658666ced..3abb69dfd 100644
--- a/src/java/org/apache/fop/render/ps/PSRenderer.java
+++ b/src/java/org/apache/fop/render/ps/PSRenderer.java
@@ -780,7 +780,11 @@ public class PSRenderer extends AbstractPathOrientedRenderer {
sb.append(")" + PSGenerator.LF + "[");
for (int i = 0; i < textLen; i++) {
if (i > 0) {
- sb.append(" ");
+ if (i % 8 == 0) {
+ sb.append(PSGenerator.LF);
+ } else {
+ sb.append(" ");
+ }
}
sb.append(gen.formatDouble(offsets[i] / 1000f));
}