public static void initFonts(){
  try {
    final String fontMaps=System.getProperty("org.jpedal.fontmaps");
    if (fontMaps != null) {
      final StringTokenizer fontPaths=new StringTokenizer(fontMaps,",");
      while (fontPaths.hasMoreTokens()) {
        final String fontPath=fontPaths.nextToken();
        final StringTokenizer values=new StringTokenizer(fontPath,"=:");
        final int count=values.countTokens() - 1;
        final String[] nameInPDF=new String[count];
        final String key=values.nextToken();
        for (int i=0; i < count; i++) {
          nameInPDF[i]=values.nextToken();
        }
        setSubstitutedFontAliases(key,nameInPDF);
      }
    }
  }
 catch (  final Exception e) {
    LogWriter.writeLog("Unable to read org.jpedal.fontmaps " + e.getMessage());
  }
  try {
    final String fontDirs=System.getProperty("org.jpedal.fontdirs");
    String failed=null;
    if (fontDirs != null) {
      failed=FontMappings.addFonts(fontDirs,failed);
    }
    if (failed != null) {
      LogWriter.writeLog("Could not find " + failed);
    }
  }
 catch (  final Exception e) {
    LogWriter.writeLog("Unable to read FontDirs " + e.getMessage());
  }
}

public static void initFonts ( ) { try { final String fontMaps = System . getProperty ( "org.jpedal.fontmaps" ) ; if ( fontMaps != null ) { final StringTokenizer fontPaths = new StringTokenizer ( fontMaps , "," ) ; while ( fontPaths . hasMoreTokens ( ) ) { final String fontPath = fontPaths . nextToken ( ) ; final StringTokenizer values = new StringTokenizer ( fontPath , "=:" ) ; final int count = values . countTokens ( ) - 1 ; final String [ ] nameInPDF = new String [ count ] ; final String key = values . nextToken ( ) ; for ( int i = 0 ; i < count ; i ++ ) { nameInPDF [ i ] = values . nextToken ( ) ; } setSubstitutedFontAliases ( key , nameInPDF ) ; } } } catch ( final Exception e ) { LogWriter . writeLog ( "Unable to read org.jpedal.fontmaps " + e . getMessage ( ) ) ; } try { final String fontDirs = System . getProperty ( "org.jpedal.fontdirs" ) ; String failed = null ; if ( fontDirs != null ) { failed = FontMappings . addFonts ( fontDirs , failed ) ; } if ( failed != null ) { LogWriter . writeLog ( "Could not find " + failed ) ; } } catch ( final Exception e ) { LogWriter . writeLog ( "Unable to read FontDirs " + e . getMessage ( ) ) ; } }
used internally to pick uo org . jpedal . fontmaps property and set
