I have also faced same problem n have solved .
Write below given code lines before parsing, i.e pseudo code,
reader.parse(ur string to parse)
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);
}
and font config file as,
see I m specifying font base using java code because its at app's level.
--
View this message in context:
http://old.nabble.com/Does-FOP-0.95-supports-Chinese-Fonts--tp28143250p28483059.html
Sent from the FOP - Users mailing list archive at Nabble.com.