forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Heather Phipps <>
Subject Re: Japanese PDF rendering
Date Thu, 23 Apr 2009 06:19:24 GMT
Hi Praveen,

I very much appreciate your prompt response, as I have been struggling
with this issue for quite some time now.

Unfortunately, even after editing
I am unable to get the font to display correctly in the PDF file.

I have a few questions. did you know that Forrest is
using output.xmap instead of sitemap.xmap for this step?  Second, do
you know if step number 5 in the instructions from is
correct for Forrest 0.8?

Here is an excerpt from my output.xmap file:

    <map:serializers default="fo2pdf">
      <map:serializer name="fo2pdf"

(Currently, this is in both my sitemap.xmap file and output.xmap)

I downloaded the .ttf and corresponding font-metric xml files from and
placed them in /Users/Heather/apache-forrest-0.8/main/webapp/resources/fonts/,
alongside config.xml, which contains the following:

<?xml version="1.0" encoding="UTF-8"?>
 <font metrics-file="/Users/Heather/apache-forrest-0.8/main/webapp/resources/fonts/sazanami-gothic.xml"
   <font-triplet name="Gothic" style="normal" weight="normal"/>
   <font-triplet name="Gothic" style="normal" weight="bold"/>
   <font-triplet name="Gothic" style="italic" weight="normal"/>
   <font-triplet name="Gothic" style="italic" weight="bold"/>
 <font metrics-file="/Users/Heather/apache-forrest-0.8/main/webapp/resources/fonts/sazanami-mincho.xml"
   <font-triplet name="Mincho" style="normal" weight="normal"/>
   <font-triplet name="Mincho" style="normal" weight="bold"/>
   <font-triplet name="Mincho" style="italic" weight="normal"/>
   <font-triplet name="Mincho" style="italic" weight="bold"/>

I also tried using different .ttf files and generating the font-metric
files myself, and it appeared that the font-metric files were
generated properly, but the PDF still did not display the Japanese
text correctly.

Any further thoughts?


View raw message