public FSFont resolveFont(SharedContext ctx,String[] families,float size,IdentValue weight,IdentValue style,IdentValue variant){
  List<Font> fonts=new ArrayList<Font>(3);
  if (families != null) {
    for (int i=0; i < families.length; i++) {
      Font font=resolveFont(ctx,families[i],size,weight,style,variant);
      if (font != null) {
        fonts.add(font);
      }
    }
  }
  String family="SansSerif";
  if (style == IdentValue.ITALIC) {
    family="Serif";
  }
  Font fnt=createFont(ctx,availableFontsHash.get(family),size,weight,style,variant);
  instanceHash.put(getFontInstanceHashName(ctx,family,size,weight,style,variant),fnt);
  fonts.add(fnt);
  return new AWTFSFont(fonts,size);
}

public FSFont resolveFont ( SharedContext ctx , String [ ] families , float size , IdentValue weight , IdentValue style , IdentValue variant ) { List < Font > fonts = new ArrayList < Font > ( 3 ) ; if ( families != null ) { for ( int i = 0 ; i < families . length ; i ++ ) { Font font = resolveFont ( ctx , families [ i ] , size , weight , style , variant ) ; if ( font != null ) { fonts . add ( font ) ; } } } String family = "SansSerif" ; if ( style == IdentValue . ITALIC ) { family = "Serif" ; } Font fnt = createFont ( ctx , availableFontsHash . get ( family ) , size , weight , style , variant ) ; instanceHash . put ( getFontInstanceHashName ( ctx , family , size , weight , style , variant ) , fnt ) ; fonts . add ( fnt ) ; return new AWTFSFont ( fonts , size ) ; }
resolves a list of font families .
