/** * Run the callback for each TT font in the collection. * * @param trueTypeFontProcessor the object with the callback method. * @throws IOException */ public void processAllFonts(TrueTypeFontProcessor trueTypeFontProcessor) throws IOException { for (int i = 0; i < numFonts; i++) { TrueTypeFont font = getFontAtIndex(i); trueTypeFontProcessor.process(font); } }
/** * Get a TT font from a collection. * * @param name The postscript name of the font. * @return The found font, nor null if none is found. * @throws IOException */ public TrueTypeFont getFontByName(String name) throws IOException { for (int i = 0; i < numFonts; i++) { TrueTypeFont font = getFontAtIndex(i); if (font.getName().equals(name)) { return font; } } return null; }
/** * Run the callback for each TT font in the collection. * * @param trueTypeFontProcessor the object with the callback method. * @throws IOException */ public void processAllFonts(TrueTypeFontProcessor trueTypeFontProcessor) throws IOException { for (int i = 0; i < numFonts; i++) { TrueTypeFont font = getFontAtIndex(i); trueTypeFontProcessor.process(font); } }
/** * Run the callback for each TT font in the collection. * * @param trueTypeFontProcessor the object with the callback method. * @throws IOException */ public void processAllFonts(TrueTypeFontProcessor trueTypeFontProcessor) throws IOException { for (int i = 0; i < numFonts; i++) { TrueTypeFont font = getFontAtIndex(i); trueTypeFontProcessor.process(font); } }
/** * Get a TT font from a collection. * * @param name The postscript name of the font. * @return The found font, nor null if none is found. * @throws IOException */ public TrueTypeFont getFontByName(String name) throws IOException { for (int i = 0; i < numFonts; i++) { TrueTypeFont font = getFontAtIndex(i); if (font.getName().equals(name)) { return font; } } return null; }
/** * Get a TT font from a collection. * * @param name The postscript name of the font. * @return The found font, nor null if none is found. * @throws IOException */ public TrueTypeFont getFontByName(String name) throws IOException { for (int i = 0; i < numFonts; i++) { TrueTypeFont font = getFontAtIndex(i); if (font.getName().equals(name)) { return font; } } return null; }