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

RE: add new fonts

From: Kevin Flynn <kevin.flynn@birdstep.com>
Date: Tue, 8 Jan 2002 10:03:55 +0100
Message-ID: <9BF5DD8B8F3CD411959500B0D020ED3E2C16DD@EXCHANGE>
To: "'hjiang@obj-x.com'" <hjiang@obj-x.com>, www-xsl-fo@w3.org
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, 
<!-- 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 fop.jar 

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 Tuesday, 8 January 2002 04:06:04 UTC

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