@@ -425,6 +425,7 @@ public static PdfType3Font createType3Font(PdfDocument document, String fontName
425
425
* @see PdfFontFactory#register(String, String)
426
426
* @see PdfFontFactory#registerFamily(String, String, String)
427
427
* @see PdfFontFactory#registerDirectory(String)
428
+ * @see PdfFontFactory#registerDirectoryRecursively(String)
428
429
* @see PdfFontFactory#registerSystemDirectories()
429
430
* @see PdfFontFactory#getRegisteredFamilies()
430
431
* @see PdfFontFactory#getRegisteredFonts()
@@ -453,6 +454,7 @@ public static PdfFont createRegisteredFont(String fontName, String encoding,
453
454
* @see PdfFontFactory#register(String, String)
454
455
* @see PdfFontFactory#registerFamily(String, String, String)
455
456
* @see PdfFontFactory#registerDirectory(String)
457
+ * @see PdfFontFactory#registerDirectoryRecursively(String)
456
458
* @see PdfFontFactory#registerSystemDirectories()
457
459
* @see PdfFontFactory#getRegisteredFamilies()
458
460
* @see PdfFontFactory#getRegisteredFonts()
@@ -479,6 +481,7 @@ public static PdfFont createRegisteredFont(String fontName, String encoding,
479
481
* @see PdfFontFactory#register(String, String)
480
482
* @see PdfFontFactory#registerFamily(String, String, String)
481
483
* @see PdfFontFactory#registerDirectory(String)
484
+ * @see PdfFontFactory#registerDirectoryRecursively(String)
482
485
* @see PdfFontFactory#registerSystemDirectories()
483
486
* @see PdfFontFactory#getRegisteredFamilies()
484
487
* @see PdfFontFactory#getRegisteredFonts()
@@ -506,6 +509,7 @@ public static PdfFont createRegisteredFont(String fontName, String encoding,
506
509
* @see PdfFontFactory#register(String, String)
507
510
* @see PdfFontFactory#registerFamily(String, String, String)
508
511
* @see PdfFontFactory#registerDirectory(String)
512
+ * @see PdfFontFactory#registerDirectoryRecursively(String)
509
513
* @see PdfFontFactory#registerSystemDirectories()
510
514
* @see PdfFontFactory#getRegisteredFamilies()
511
515
* @see PdfFontFactory#getRegisteredFonts()
@@ -527,6 +531,7 @@ public static PdfFont createRegisteredFont(String fontName, String encoding,
527
531
* @see PdfFontFactory#register(String, String)
528
532
* @see PdfFontFactory#registerFamily(String, String, String)
529
533
* @see PdfFontFactory#registerDirectory(String)
534
+ * @see PdfFontFactory#registerDirectoryRecursively(String)
530
535
* @see PdfFontFactory#registerSystemDirectories()
531
536
* @see PdfFontFactory#getRegisteredFamilies()
532
537
* @see PdfFontFactory#getRegisteredFonts()
@@ -546,6 +551,7 @@ public static PdfFont createRegisteredFont(String fontName, String encoding) thr
546
551
* @see PdfFontFactory#register(String, String)
547
552
* @see PdfFontFactory#registerFamily(String, String, String)
548
553
* @see PdfFontFactory#registerDirectory(String)
554
+ * @see PdfFontFactory#registerDirectoryRecursively(String)
549
555
* @see PdfFontFactory#registerSystemDirectories()
550
556
* @see PdfFontFactory#getRegisteredFamilies()
551
557
* @see PdfFontFactory#getRegisteredFonts()
@@ -596,6 +602,17 @@ public static int registerDirectory(String dirPath) {
596
602
return FontProgramFactory .registerFontDirectory (dirPath );
597
603
}
598
604
605
+
606
+ /**
607
+ * Registers all the fonts in a directory recursively.
608
+ *
609
+ * @param dirPath the directory path to be registered as a font directory path
610
+ * @return the number of fonts registered
611
+ */
612
+ public static int registerDirectoryRecursively (String dirPath ) {
613
+ return FontProgramFactory .registerFontDirectoryRecursively (dirPath );
614
+ }
615
+
599
616
/**
600
617
* Register fonts in some probable directories. It usually works in Windows,
601
618
* Linux and Solaris.
0 commit comments