final HashSet registeredFamilies = new HashSet();
final int registryCount = registries.size();
for (int i = 0; i < registryCount; i++)
{
final FontRegistry fontRegistry = (FontRegistry) registries.get(i);
final String[] fontFamilies = fontRegistry.getAllRegisteredFamilies();
final int familyCount = fontFamilies.length;
for (int j = 0; j < familyCount; j++)
{
final String fontFamily = fontFamilies[j];
registeredFamilies.add(fontFamily);