W3C home > Mailing lists > Public > www-xsl-fo@w3.org > January 2002

add new fonts

From: Hong Jiang <hjiang@obj-x.com>
Date: Mon, 07 Jan 2002 14:34:04 -0500
Message-ID: <3C39F82C.B33B53B5@obj-x.com>
To: www-xsl-fo@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT