aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/fonts/FontInfo.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fonts/FontInfo.java b/src/java/org/apache/fop/fonts/FontInfo.java
index e833b7b93..6cea08afd 100644
--- a/src/java/org/apache/fop/fonts/FontInfo.java
+++ b/src/java/org/apache/fop/fonts/FontInfo.java
@@ -440,4 +440,22 @@ public class FontInfo {
return 0;
}
}
+
+ /**
+ * Diagnostic method for logging all registered fonts to System.out.
+ */
+ public void dumpAllTripletsToSystemOut() {
+ Collection entries = new java.util.TreeSet();
+ Iterator iter = this.triplets.keySet().iterator();
+ while (iter.hasNext()) {
+ FontTriplet triplet = (FontTriplet)iter.next();
+ String key = getInternalFontKey(triplet);
+ FontMetrics metrics = getMetricsFor(key);
+ entries.add(triplet.toString() + " -> " + key + " -> " + metrics.getFontName());
+ }
+ iter = entries.iterator();
+ while (iter.hasNext()) {
+ System.out.println(iter.next());
+ }
+ }
}