- From: Kevin Flynn <kevin.flynn@birdstep.com>
- Date: Wed, 28 Nov 2001 09:21:09 +0100
- 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
example:
<font metrics-file="pala.xml" kerning="yes"
embed-file="c:\winnt\fonts\pala.ttf">
<font-triplet name="PalatinoLinotype" style="normal" weight="normal"/>
</font>
<font metrics-file="palab.xml" kerning="yes"
embed-file="c:\winnt\fonts\palab.ttf">
<font-triplet name="PalatinoLinotype" style="normal" weight="bold"/>
</font>
<font metrics-file="palai.xml" kerning="yes"
embed-file="c:\winnt\fonts\palai.ttf">
<font-triplet name="PalatinoLinotype" style="italic" weight="normal"/>
</font>
<font metrics-file="palabi.xml" kerning="yes"
embed-file="c:\winnt\fonts\palabi.ttf">
<font-triplet name="PalatinoLinotype" style="italic" weight="bold"/>
</font>
where "PalatinoLinotype" is the <font-name> specified in the font metrics
files.
- 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
any
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