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,
<!-- add new font tahoma -->
 <font metrics-file="tohama.xml" kerning="yes"
    <font-triplet name="Tohama" style="italic" weight="normal"/>
    <font-triplet name="TohamaMT" style="italic" weight="normal"/>
 <font metrics-file="tohamabd.xml" kerning="yes"
    <font-triplet name="Tohama" style="italic" weight="bold"/>
    <font-triplet name="TohamaMT" style="italic" weight="bold"/>

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

Then I run my file,
fop -c conf/userconfig.xml -xsl test\cover.xsl -xml test\cover.xml
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:25 UTC