TrueTypeFontRegistry tfr = new TrueTypeFontRegistry();
tfr.registerDefaultFontPath();
for (int i = 0; i < names.length; i++)
{
final String name = names[i];
final FontFamily fofam = tfr.getFontFamily(name);
if (name.equals("AmerType Md BT"))
{
FontSource fr = (FontSource) fofam.getFontRecord(false, false);
FontDataInputSource fs = fr.getFontInputSource();
TrueTypeFont ttf = new TrueTypeFont(fs);
NameTable nt = (NameTable) ttf.getTable(NameTable.TABLE_ID);
//PostscriptInformationTable pst = ttf.getTable(PostscriptInformationTable.TABLE_ID);
FontHeaderTable fht = (FontHeaderTable) ttf.getTable(FontHeaderTable.TABLE_ID);