code: public int registerDirectories() {
          int count = 0;
          count += registerDirectory("c:/windows/fonts");
          count += registerDirectory("c:/winnt/fonts");
          count += registerDirectory("d:/windows/fonts");
          count += registerDirectory("d:/winnt/fonts");
          count += registerDirectory("/usr/share/X11/fonts", true);
          count += registerDirectory("/usr/X/lib/X11/fonts", true);
          count += registerDirectory("/usr/openwin/lib/X11/fonts", true);
          count += registerDirectory("/usr/share/fonts", true);
          count += registerDirectory("/usr/X11R6/lib/X11/fonts", true);
          count += registerDirectory("/Library/Fonts");
          count += registerDirectory("/System/Library/Fonts");
          return count;
      }
docs: Register fonts in some probable directories. It usually works in Windows,
  Linux and Solaris.
  @return the number of fonts registered