From c5e6d82c6c6497e17b03a45de2a8883814ef2421 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 18 Mar 2011 14:59:34 +0000 Subject: [PATCH] toString() method for BFEntry. 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/java/org/apache/fop/fonts/BFEntry.java b/src/java/org/apache/fop/fonts/BFEntry.java index 4e0b169fd..e04b021e4 100644 --- a/src/java/org/apache/fop/fonts/BFEntry.java +++ b/src/java/org/apache/fop/fonts/BFEntry.java @@ -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(); + } + } -- 2.39.5