public NativeFont(String platName,boolean bitmapDelegate) throws FontFormatException {
  super(platName,null);
  isBitmapDelegate=bitmapDelegate;
  if (GraphicsEnvironment.isHeadless()) {
    throw new FontFormatException("Native font in headless toolkit");
  }
  fontRank=Font2D.NATIVE_RANK;
  initNames();
  if (getNumGlyphs() == 0) {
    throw new FontFormatException("Couldn't locate font" + platName);
  }
}

public NativeFont ( String platName , boolean bitmapDelegate ) throws FontFormatException { super ( platName , null ) ; isBitmapDelegate = bitmapDelegate ; if ( GraphicsEnvironment . isHeadless ( ) ) { throw new FontFormatException ( "Native font in headless toolkit" ) ; } fontRank = Font2D . NATIVE_RANK ; initNames ( ) ; if ( getNumGlyphs ( ) == 0 ) { throw new FontFormatException ( "Couldn't locate font" + platName ) ; } }
verifies native font is accessible .
