/** * Registers all the fonts in a directory. * * @param dirPath the directory path to be registered as a font directory path * @return the number of fonts registered */ public static int registerDirectory(String dirPath) { return FontProgramFactory.registerFontDirectory(dirPath); }