public static String addFonts(final String fontDirs,final String failed){
  final StringTokenizer fontPaths=new StringTokenizer(fontDirs,",");
  while (fontPaths.hasMoreTokens()) {
    String fontPath=fontPaths.nextToken();
    if (!fontPath.endsWith("/") && !fontPath.endsWith("\\")) {
      fontPath+=separator;
    }
    addTTDir(fontPath,failed);
  }
  return failed;
}

public static String addFonts ( final String fontDirs , final String failed ) { final StringTokenizer fontPaths = new StringTokenizer ( fontDirs , "," ) ; while ( fontPaths . hasMoreTokens ( ) ) { String fontPath = fontPaths . nextToken ( ) ; if ( ! fontPath . endsWith ( "/" ) && ! fontPath . endsWith ( "\\" ) ) { fontPath += separator ; } addTTDir ( fontPath , failed ) ; } return failed ; }
takes a comma separated list of font directories and add to substitution
