FOUserAgent userAgent = fopFactory.newFOUserAgent();
//The document handler is only instantiated to get access to its configurator!
IFDocumentHandler documentHandler
= fopFactory.getRendererFactory().createDocumentHandler(userAgent, mime);
IFDocumentHandlerConfigurator configurator = documentHandler.getConfigurator();
FontInfo fontInfo = new FontInfo();
configurator.setupFontInfo(documentHandler, fontInfo);
return fontInfo;
}