Koon Sang schrieb: > Hi, > > I followed the 2-steps instruction given by Zhiyongcui at > http://n4.nabble.com/simplified-chinese-problem-td1565879.html#a1565903 but > still cannot get it to generate proper Chinese characters. Not sure what > have I missed. > > I have generated simhei.xml and put the following in fop.xconf: > > > <font-triplet name="SimHei" style="normal" weight="normal"/>
What is the content of <font metrics-url=" ? > I copied c:\windows\fonts\simhei.ttf and simhei.xml to > framework/webapp/config. > > When I tried to generate any PDF file, I got the following exception: > > java.lang.NoClassDefFoundError: > org/apache/xml/utils/URI$MalformedURIException > org.apache.fop.fonts.FontCache.addFont(FontCache.java:246) This seems to be a subsequent error resulting from a wrong metrics-url (but this NoClassDefFoundError error shouldn't happen, I'll check if a jar is missing) [..] > In fact, I got the same exception even with the following in fop.xconf: > > <fonts> > <auto-detect/> > </fonts> This should work (remove the custom font from fop.xconf), just reference the font with the correct Name. Christian
