Configuration cfg = super.getRendererConfig(documentHandler.getMimeType());
if (cfg != null) {
try {
List<AFPFontInfo> fontList = buildFontListFromConfiguration(cfg, eventProducer);
fontCollections.add(new AFPFontCollection(
userAgent.getEventBroadcaster(), fontList));
} catch (ConfigurationException e) {
eventProducer.invalidConfiguration(this, e);
LogUtil.handleException(log, e,
userAgent.getFactory().validateUserConfigStrictly());
}
} else {
fontCollections.add(new AFPFontCollection(userAgent.getEventBroadcaster(), null));
}
fontManager.setup(fontInfo,
fontCollections.toArray(
new FontCollection[fontCollections.size()]));