aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-08-25 07:28:27 +0000
committerJeremias Maerki <jeremias@apache.org>2005-08-25 07:28:27 +0000
commit9bc9484967a1bf35d281d13ae23ffa2a9fccc992 (patch)
treee72f37cbb80d5422f8998908683a2ef784871a27 /src
parenta35f808888428ef09e0c432d049b8d89e34c4880 (diff)
downloadxmlgraphics-fop-9bc9484967a1bf35d281d13ae23ffa2a9fccc992.tar.gz
xmlgraphics-fop-9bc9484967a1bf35d281d13ae23ffa2a9fccc992.zip
Kerning is currently not supported by the layout engine, so disable it for PDF and add a TODO item for PS.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240012 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/render/pdf/PDFRenderer.java4
-rw-r--r--src/java/org/apache/fop/render/ps/PSRenderer.java12
2 files changed, 14 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/render/pdf/PDFRenderer.java b/src/java/org/apache/fop/render/pdf/PDFRenderer.java
index cfb73530f..55ad68239 100644
--- a/src/java/org/apache/fop/render/pdf/PDFRenderer.java
+++ b/src/java/org/apache/fop/render/pdf/PDFRenderer.java
@@ -1187,7 +1187,9 @@ public class PDFRenderer extends AbstractPathOrientedRenderer {
boolean kerningAvailable = false;
Map kerning = fs.getKerning();
if (kerning != null && !kerning.isEmpty()) {
- kerningAvailable = true;
+ //kerningAvailable = true;
+ //TODO Reenable me when the layout engine supports kerning, too
+ log.warn("Kerning support is disabled until it is supported by the layout engine!");
}
int l = s.length();
diff --git a/src/java/org/apache/fop/render/ps/PSRenderer.java b/src/java/org/apache/fop/render/ps/PSRenderer.java
index 9e9733d68..fca93921b 100644
--- a/src/java/org/apache/fop/render/ps/PSRenderer.java
+++ b/src/java/org/apache/fop/render/ps/PSRenderer.java
@@ -25,6 +25,7 @@ import java.io.IOException;
import java.io.OutputStream;
import java.util.Iterator;
import java.util.List;
+import java.util.Map;
// FOP
import org.apache.avalon.framework.configuration.Configuration;
@@ -713,7 +714,16 @@ public class PSRenderer extends AbstractPathOrientedRenderer {
handleIOTrouble(ioe);
}
}
- //paintText(rx, bl, , f);
+
+ boolean kerningAvailable = false;
+ Map kerning = tf.getKerningInfo();
+ if (kerning != null && !kerning.isEmpty()) {
+ //kerningAvailable = true;
+ //TODO Fix me when kerning is supported by the layout engine
+ log.warn("Kerning info is available, but kerning is not yet implemented for"
+ + " the PS renderer and not currently supported by the layout engine.");
+ }
+
String text = area.getTextArea();
beginTextObject();
writeln("1 0 0 -1 " + gen.formatDouble(rx / 1000f)