Removed an unnecessary table retrieval from font info tool
CL @ http://codereview.appspot.com/6446143/
git-svn-id: http://sfntly.googlecode.com/svn/trunk@147 672e30a5-4c29-85ac-ac6d-611c735e0a51
diff --git a/java/src/com/google/typography/font/tools/fontinfo/FontInfoMain.java b/java/src/com/google/typography/font/tools/fontinfo/FontInfoMain.java
index 3ca412d..a6d599f 100644
--- a/java/src/com/google/typography/font/tools/fontinfo/FontInfoMain.java
+++ b/java/src/com/google/typography/font/tools/fontinfo/FontInfoMain.java
@@ -192,16 +192,17 @@
// Print glyph information
if (options.glyphs || options.all) {
+ DataDisplayTable unmappedGlyphs = FontInfo.listUnmappedGlyphs(font);
if (options.csv) {
System.out.println(String.format("Total hinting size: %s", FontInfo.hintingSize(font)));
System.out.println(String.format(
- "Number of unmapped glyphs: %d / %d", FontInfo.listUnmappedGlyphs(font).getNumRows(),
+ "Number of unmapped glyphs: %d / %d", unmappedGlyphs.getNumRows(),
FontInfo.numGlyphs(font)));
System.out.println();
if (options.detailed) {
System.out.println("Unmapped glyphs:");
- System.out.println(prependDataAndBuildCsv(
- FontInfo.listUnmappedGlyphs(font).csvStringArray(), fileName, i));
+ System.out.println(
+ prependDataAndBuildCsv(unmappedGlyphs.csvStringArray(), fileName, i));
System.out.println();
}
System.out.println("Subglyphs used by characters in the font:");
@@ -211,12 +212,12 @@
} else {
System.out.println(String.format("Total hinting size: %s", FontInfo.hintingSize(font)));
System.out.println(String.format(
- "Number of unmapped glyphs: %d / %d", FontInfo.listUnmappedGlyphs(font).getNumRows(),
+ "Number of unmapped glyphs: %d / %d", unmappedGlyphs.getNumRows(),
FontInfo.numGlyphs(font)));
System.out.println();
if (options.detailed) {
System.out.println("Unmapped glyphs:");
- FontInfo.listUnmappedGlyphs(font).prettyPrint();
+ unmappedGlyphs.prettyPrint();
System.out.println();
}
System.out.println("Subglyphs used by characters in the font:");