On 2011-10-29 3:15 PM, "Sergiu
Dumitriu"<sergiu(a)xwiki.com> wrote:
# 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.
IPAFonts can be redistributed, but it seems they are mostly for Japanese.
Looking further, I found Arphic fonts which seem to provide support for
Chinese in two variants, serif and script. From my point of view, the
script variant would look better in print, but I'd like the opinion of a
Chinese before deciding on a default.
I am a Chinese :) However, I don't know much about script. The most
popular font used in Chinses documents
are SONG (simsun.ttc in windows, and STSONG.TTF is also SONG presents by
another corporation) that is kind of serif.
On 2011-10-28
9:56 PM, "yang Li"<yang.lee.cool(a)gmail.com> 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
> users(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users