W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2001

Beginner's font question

From: Kevin Flynn <kevin.flynn@birdstep.com>
Date: Wed, 28 Nov 2001 09:21:09 +0100
Message-ID: <9BF5DD8B8F3CD411959500B0D020ED3E2C1698@EXCHANGE>
To: "'www-xsl-fo@w3c.org'" <www-xsl-fo@w3c.org>
I'm having some trouble getting anything other than default fonts in my PDF
output. I've read the docs, and I've done the following:

- Generated font metrics XML files from the TrueType fonts I want to use. I
have currently stored these files both in FOP's conf directory, and for good
measure in the build directory too.

- Made appropriate (I think!) entries in the userconfig.xml file. For

 <font metrics-file="pala.xml" kerning="yes"
    <font-triplet name="PalatinoLinotype" style="normal" weight="normal"/>
 <font metrics-file="palab.xml" kerning="yes"
    <font-triplet name="PalatinoLinotype" style="normal" weight="bold"/>
 <font metrics-file="palai.xml" kerning="yes"
    <font-triplet name="PalatinoLinotype" style="italic" weight="normal"/>
 <font metrics-file="palabi.xml" kerning="yes"
    <font-triplet name="PalatinoLinotype" style="italic" weight="bold"/>

where "PalatinoLinotype" is the <font-name> specified in the font metrics

 - Used the font name "PalatinoLinotype" in my FO file. For example:

<fo:block font-family="PalatinoLinotype" font-size="11pt" text-align="left"
color="black" space-before="0pt" space-after="12pt">Some text</fo:block>

The consequence when I run FOP is the following message:

WARNING: unknown font PalatinoLinotype,normal,normal so defaulted font to

Can anybody tell me what I'm doing wrong?

Best regards
Kevin Flynn 
Birdstep Technology www.birdstep.com 
Direct: +47 24 13 47 75
Received on Wednesday, 28 November 2001 03:39:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:53 UTC