* @param key the key of the font
* @param font the new value or <code>null</code> to set
* the default value
*/
public void setFont( String key, FontModifier font ){
FontModifier old;
if( font == null )
old = fonts.remove( key );
else
old = fonts.put( key, font );
if( (old == null && font != null) || (old != null && !old.equals( font )) ){
for( FontMapListener listener : listeners.toArray( new FontMapListener[ listeners.size() ] ))
listener.fontChanged( this, key, font );
}
}