add new fonts

I want to add font "Tohama" to FOP on Windows NT.
I followed the instructions in the web site to generate font metrics xml
file and register it within FOP.
The relative code in userconfig.xml is,
<fonts>
<!-- add new font tahoma -->
 <font metrics-file="tohama.xml" kerning="yes"
embed-file="c:\winnt\fonts\tohama.ttf">
    <font-triplet name="Tohama" style="italic" weight="normal"/>
    <font-triplet name="TohamaMT" style="italic" weight="normal"/>
 </font>
 <font metrics-file="tohamabd.xml" kerning="yes"
embed-file="c:\winnt\fonts\tohamabd.ttf">
    <font-triplet name="Tohama" style="italic" weight="bold"/>
    <font-triplet name="TohamaMT" style="italic" weight="bold"/>
 </font>
 </fonts>

and I put my tohama.xml and tohamabd.xml  in the same directory of
fop.jar

Then I run my file,
fop -c conf/userconfig.xml -xsl test\cover.xsl -xml test\cover.xml
test\cover.pdf
and still got the error said,
[ERROR]: unknown font Tohama,normal,normal so defaulted font to any

Anybody tell me what's wrong?

Thanks in advance,

Hong Jiang

Received on Monday, 7 January 2002 14:33:15 UTC