* @param factory the factory for new bridges, can be <code>null</code>
*/
public void putFontBridgeFactory( Path kind, FontBridgeFactory factory ){
fontBridgeFactories.put( kind, factory );
for( Controller setting : controllers ){
FontManager fonts = setting.controller.getFonts();
FontBridge oldBridge = setting.fonts.remove( kind );
FontBridge newBridge = factory == null ? null : factory.create( fonts );
if( newBridge == null ){
setting.fonts.remove( kind );
if( oldBridge != null ){
fonts.unpublish( Priority.DEFAULT, kind );
}
}
else{
setting.fonts.put( kind, newBridge );
fonts.publish( Priority.DEFAULT, kind, newBridge );
}
}
}