Write below code before parsing using rederer,

String pathOfFontsDir =
request.getSession().getServletContext().getRealPath("fonts");
                        InputSource config = new InputSource(pathOfFontsDir +
"/FontsConfig.xml");
                        ConfigurationReader configReader = new
ConfigurationReader(config);
                       
org.apache.fop.configuration.Configuration.put("fontBaseDir",pathOfFontsDir); 
                        try {
                                configReader.start();
                        }
                        catch (org.apache.fop.apps.FOPException error) {
                                configReader.dumpError(error);
                        }
-- 
View this message in context: 
http://old.nabble.com/Fonts-in-embedded-applications-tp27951854p28483410.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to