/// <summary>
 /// Register all the fonts in a directory and possibly its subdirectories.
 /// @since 2.1.2
 /// </summary>
 /// <param name="dir">the directory</param>
 /// <param name="scanSubdirectories">recursively scan subdirectories if  true</param>
 /// <returns>the number of fonts registered</returns>
 public static int RegisterDirectory(string dir, bool scanSubdirectories)
 {
     return(FontImp.RegisterDirectory(dir, scanSubdirectories));
 }
 /// <summary>
 /// Register all the fonts in a directory.
 /// </summary>
 /// <param name="dir">the directory</param>
 /// <returns>the number of fonts registered</returns>
 public static int RegisterDirectory(string dir)
 {
     return(FontImp.RegisterDirectory(dir));
 }