public TrueTypeFont(String platname,Object nativeNames,int fIndex,boolean javaRasterizer,boolean useFilePool) throws FontFormatException {
  super(platname,nativeNames);
  useJavaRasterizer=javaRasterizer;
  fontRank=Font2D.TTF_RANK;
  try {
    verify(useFilePool);
    init(fIndex);
    if (!useFilePool) {
      close();
    }
  }
 catch (  Throwable t) {
    close();
    if (t instanceof FontFormatException) {
      throw (FontFormatException)t;
    }
 else {
      throw new FontFormatException("Unexpected runtime exception.");
    }
  }
  Disposer.addObjectRecord(this,disposerRecord);
}

public TrueTypeFont ( String platname , Object nativeNames , int fIndex , boolean javaRasterizer , boolean useFilePool ) throws FontFormatException { super ( platname , nativeNames ) ; useJavaRasterizer = javaRasterizer ; fontRank = Font2D . TTF_RANK ; try { verify ( useFilePool ) ; init ( fIndex ) ; if ( ! useFilePool ) { close ( ) ; } } catch ( Throwable t ) { close ( ) ; if ( t instanceof FontFormatException ) { throw ( FontFormatException ) t ; } else { throw new FontFormatException ( "Unexpected runtime exception." ) ; } } Disposer . addObjectRecord ( this , disposerRecord ) ; }
- does basic verification of the file - reads the header table for this font ( within a collection ) - reads the names ( full , family ) . - determines the style of the font . - initializes the cmap
