Here is part of the logs, seems not found the fonts I placed in the fonts directory... format=pdf&pdfcover=1&pdfcover=0&pdftoc=1&pdftoc=0&comments=0&attachments=0] WARN o.a.f.a.FOUserAgent - Glyph "重" (0x91cd) not available in font "FreeSerif". 2011/10/30 yang Li <[email protected]>
It still doesn't work :(
I tried Adobe's AdobeSongStd-Light.otf, and simsum.ttc, STSONG.TTF from my windows, and did the xhtml2fo.xsl job and restart the tomcat but still get millions of ####...
2011/10/30 Sergiu Dumitriu <[email protected]>
# means that the font used in the pdf does not contain those characters. You should find a font that has support for Chinese, copy it in WEB-INF/fonts, extract xhtml2fo.xsl from WEB-INF/libs/xwiki-platform-legacy-oldcore-*.jar into WEB-INF/classes, edit it and add the name of your font next to FreeSerif and FreeMono wherever they occur in the file, for example:
<xsl:attribute name="font-family">FreeSerif,IPAGothic,serif</xsl:attribute>
Restart the server, and everything should work.
A good free font is IPAGothic, which I'll have to check if it can be redistributed by default.
Sergiu Dumitriu http://purl.org/net/sergiu/ On 2011-10-28 9:56 PM, "yang Li" <[email protected]> wrote:
Hi,
I tried to export a page with many chinese characters as pdf, but the resulted pdf has many "#".
There are no encoding problems elsewhere, everything is displayed correctly by setting utf8 encoding everywhere (xwiki.cfg, database, tomcat).
I tried to search http://jira.xwiki.org and got no luck...
-- Thanks for reading!
Yang Li Electronic Engineering, Fudan University _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thanks for reading!
Yang Li Electronic Engineering, Fudan University
-- Thanks for reading! Yang Li Electronic Engineering, Fudan University