- From: Kevin Flynn <kevin.flynn@birdstep.com>
- Date: Tue, 8 Jan 2002 10:03:55 +0100
- To: "'hjiang@obj-x.com'" <hjiang@obj-x.com>, www-xsl-fo@w3.org
- Message-ID: <9BF5DD8B8F3CD411959500B0D020ED3E2C16DD@EXCHANGE>
Two things:
1 Are you talking about "Tahoma" (a standard font included in in Windows) or
"Tohama", some other font I've never heard of? If it's "Tahoma", then you've
got a spelling mistake in your code.
2 I gave up trying to use Tahoma with FOP because unlike most TrueType
fonts, it doesn't seem to have Italic and BoldItalic forms: these forms of
the face appear to be generated by Windows transforming the upright forms on
the fly. I couldn't get FOP to deal with this and produce italic forms of
the font (not that I'm an expert). If anyone finds out a way to do this, I'd
be very happy to know about it.
Kevin Flynn
Birdstep Technology AS
Oslo, Norway
-----Original Message-----
From: Hong Jiang [mailto:hjiang@obj-x.com]
Sent: 7. januar 2002 20:34
To: www-xsl-fo@w3.org
Subject: 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 Tuesday, 8 January 2002 04:06:04 UTC