diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/render/pdf/PDFRenderer.java | 4 | ||||
-rw-r--r-- | src/java/org/apache/fop/render/ps/PSRenderer.java | 12 |
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) |