Przeglądaj źródła

Method for dumping all font triplets to System.out for diagnostic purposes.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591581 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_95beta
Jeremias Maerki 16 lat temu
rodzic
commit
b58bd2b166
1 zmienionych plików z 18 dodań i 0 usunięć
  1. 18
    0
      src/java/org/apache/fop/fonts/FontInfo.java

+ 18
- 0
src/java/org/apache/fop/fonts/FontInfo.java Wyświetl plik

@@ -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());
}
}
}

Ładowanie…
Anuluj
Zapisz