public static String expandName(String name){
  final String testName=name.toLowerCase();
  if (testName.equals("cour")) {
    name="Courier";
  }
 else   if (testName.equals("helv")) {
    name="Helvetica";
  }
 else   if (testName.equals("hebo")) {
    name="Helvetica-BOLD";
  }
 else   if (testName.equals("zadb")) {
    name="ZapfDingbats";
  }
 else   if (testName.equals("tiro")) {
    name="Times";
  }
  return name;
}

public static String expandName ( String name ) { final String testName = name . toLowerCase ( ) ; if ( testName . equals ( "cour" ) ) { name = "Courier" ; } else if ( testName . equals ( "helv" ) ) { name = "Helvetica" ; } else if ( testName . equals ( "hebo" ) ) { name = "Helvetica-BOLD" ; } else if ( testName . equals ( "zadb" ) ) { name = "ZapfDingbats" ; } else if ( testName . equals ( "tiro" ) ) { name = "Times" ; } return name ; }
convert common abbreviations of standard fonts names
