FontManager fonts = controller.getFonts();
try{
fonts.lockUpdate();
for( Map.Entry<Path, FontBridgeFactory> entry : fontBridgeFactories.entrySet() ){
FontBridge bridge = entry.getValue().create( fonts );
fonts.publish( Priority.DEFAULT, entry.getKey(), bridge );
settings.fonts.put( entry.getKey(), bridge );
}
}
finally{
fonts.unlockUpdate();