]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Kerning is currently not supported by the layout engine, so disable it for PDF and...
authorJeremias Maerki <jeremias@apache.org>
Thu, 25 Aug 2005 07:28:27 +0000 (07:28 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 25 Aug 2005 07:28:27 +0000 (07:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@240012 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/pdf/PDFRenderer.java
src/java/org/apache/fop/render/ps/PSRenderer.java

index cfb73530f323f4cd16d8e898d000eb51f8b0e37d..55ad6823960557e801e59be4bab664d8bf6b2aab 100644 (file)
@@ -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();
index 9e9733d684eddd63349ae579fb7ccac13ba2acf1..fca93921b140aad78fecceace117a9598003e93b 100644 (file)
@@ -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)