Arrays.sort(families);
for (int i = 0; i < families.length; i++)
{
final String family = families[i];
writer.writeTag(null, "font-family", "name", family, false);
final FontFamily fontFamily = registry.getFontFamily(family);
writeRecord(writer, false, false, fontFamily.getFontRecord(false, false), records);
writeRecord(writer, true, false, fontFamily.getFontRecord(true, false), records);
writeRecord(writer, false, true, fontFamily.getFontRecord(false, true), records);
writeRecord(writer, true, true, fontFamily.getFontRecord(true, true), records);
writer.writeCloseTag();
}
final FontContext context = new DefaultFontContext(1000, false, true, false, "Identity-H");
final FontMetricsFactory metricsFactory = itextRegistry.createMetricsFactory();