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