Re: add new fonts

You register your font with style="italic", but FOP complains about
"Tohama,normal,normal", so you didn't specify "italic" in your FO-File.

On Mon, 07 Jan 2002 14:34:04 -0500 Hong Jiang wrote:
> 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
> 

Cheers,
Jeremias Märki

mailto:jeremias.maerki@outline.ch

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch

Received on Tuesday, 8 January 2002 02:11:12 UTC