ttf = parser.parseTTF( ttfData );
NamingTable naming = ttf.getNaming();
List records = naming.getNameRecords();
for( int i=0; i<records.size(); i++ )
{
NameRecord nr = (NameRecord)records.get( i );
if( nr.getNameId() == NameRecord.NAME_POSTSCRIPT_NAME )
{
retval.setBaseFont( nr.getString() );
fd.setFontName( nr.getString() );
}
else if( nr.getNameId() == NameRecord.NAME_FONT_FAMILY_NAME )
{
fd.setFontFamily( nr.getString() );
}
}
OS2WindowsMetricsTable os2 = ttf.getOS2Windows();
fd.setNonSymbolic( true );