public void registerFont(String name,java.awt.Font font){
  if (font == null)   throw new NullPointerException();
  fonts.put(name,font);
}

public void registerFont ( String name , java . awt . Font font ) { if ( font == null ) throw new NullPointerException ( ) ; fonts . put ( name , font ) ; }
registers a font with the graphics system .
