forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hitoshi Ozawa <>
Subject Re: Is there a decent way of using different PDF fonts for different parts of a Forrest site?
Date Fri, 27 Jan 2012 04:01:47 GMT
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:when test='lang("ja")'>IPAPGothic</xsl:when>

The question is if there is a more general way to do this than editing 
the xsl file.


(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

View raw message