public static DataDisplayTable listCmaps(Font font){
  String[] header={"Platform ID","Encoding ID","Format"};
  Align[] displayAlignment={Align.Right,Align.Right,Align.Right};
  DataDisplayTable table=new DataDisplayTable(Arrays.asList(header));
  table.setAlignment(Arrays.asList(displayAlignment));
  CMapTable cmapTable=FontUtils.getCMapTable(font);
  for (  CMap cmap : cmapTable) {
    String[] data={String.format("%d",cmap.platformId()),String.format("%d",cmap.encodingId()),String.format("%d",cmap.format())};
    table.add(Arrays.asList(data));
  }
  return table;
}

public static DataDisplayTable listCmaps ( Font font ) { String [ ] header = { "Platform ID" , "Encoding ID" , "Format" } ; Align [ ] displayAlignment = { Align . Right , Align . Right , Align . Right } ; DataDisplayTable table = new DataDisplayTable ( Arrays . asList ( header ) ) ; table . setAlignment ( Arrays . asList ( displayAlignment ) ) ; CMapTable cmapTable = FontUtils . getCMapTable ( font ) ; for ( CMap cmap : cmapTable ) { String [ ] data = { String . format ( "%d" , cmap . platformId ( ) ) , String . format ( "%d" , cmap . encodingId ( ) ) , String . format ( "%d" , cmap . format ( ) ) } ; table . add ( Arrays . asList ( data ) ) ; } return table ; }
gets a list containing the platform id , encoding id , and format of all the cmaps in a font
