public FontFamily getFontFamily(final String name) {
   for (int i = 0; i < registries.size(); i++) {
     final FontRegistry fontRegistry = (FontRegistry) registries.get(i);
     final FontFamily fontFamily = fontRegistry.getFontFamily(name);
     if (fontFamily != null) {
       return new CompoundFontFamily(fontFamily, fontRegistry);
     }
   }
   return null;
 }
  public String[] getRegisteredFamilies() {
    final HashSet registeredFamilies = new HashSet();

    for (int i = 0; i < registries.size(); i++) {
      final FontRegistry fontRegistry = (FontRegistry) registries.get(i);
      final String[] fontFamilies = fontRegistry.getRegisteredFamilies();
      final int length = fontFamilies.length;
      for (int j = 0; j < length; j++) {
        final String fontFamily = fontFamilies[j];
        registeredFamilies.add(fontFamily);
      }
    }
    return (String[]) registeredFamilies.toArray(new String[registeredFamilies.size()]);
  }
 public void initialize() {
   for (int i = 0; i < registries.size(); i++) {
     final FontRegistry fontRegistry = (FontRegistry) registries.get(i);
     fontRegistry.initialize();
   }
 }