]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
toString() method for BFEntry.
authorJeremias Maerki <jeremias@apache.org>
Fri, 18 Mar 2011 14:59:34 +0000 (14:59 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 18 Mar 2011 14:59:34 +0000 (14:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1082940 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fonts/BFEntry.java

index 4e0b169fdbf507c8823a3d7f382c002b50aecbe3..e04b021e4a0138d9e4e1c59969bd38fed64580de 100644 (file)
@@ -64,4 +64,14 @@ public class BFEntry {
         return glyphStartIndex;
     }
 
+    /** {@inheritDoc} */
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder("BFEntry: ");
+        sb.append("Unicode ").append(getUnicodeStart()).append("..").append(getUnicodeEnd());
+        sb.append(" --> ").append(getGlyphStartIndex()).append("..");
+        sb.append(getGlyphStartIndex() + getUnicodeEnd() - getUnicodeStart());
+        return sb.toString();
+    }
+
 }