Hi Karl,
It's really not just about the font. document-to-fo.xsl, language="ja"
attribute should be added to the
fo:root element when generating Japanese pdf files.
So, to put it all together, document-to-fo.xsl should be modified to
contain a when block to check lang and output
an appropriate font and language.
<xsl:choose>
<xsl:when test='lang("ja")'>IPAPGothic</xsl:when>
<xsl:otherwise>serif</xsl:otherwise>
</xsl:choose>
The question is if there is a more general way to do this than editing
the xsl file.
H.Ozawa
(2012/01/27 11:38), Karl Wright wrote:
Hello,
I have a site which has different languages in the same site. This
works OK except when it comes to PDF generation. There seems to be no
font choice that covers all languages; I need Dejavu for latin
languages, and IPA for Japanese. The problem is that I can't figure
out how to configure Forrest to use one set of fonts for part of the
site and a different set for another, for PDF generation. Is this
even possible?
Thanks,
Karl