Iterator nakedFonts = fonts.iterator();
while (nakedFonts.hasNext()) {
try {
String name = (String) nakedFonts.next();
FontInputStream fin = fontStreamForName(name);
OpenTypeFont font = new OpenTypeFont(fin, true);
if (!font.canEmbedForReading())
continue;
FontProperties key = new FontProperties(font.getFamilyName(), font.getWeight(), font.getStyle());
fontMap.put(key, name);