Hi there,

I've got trouble using customized fonts with FOP 0.94 on a Windows XP
machine. My java version is: 1.6.02.

I know the problem has been discussed before. However, none of the
suggestions given here or in other mailing lists or forums worked for
me.

My problem:
-----------
I get an error message like

        "Font Frutiger 45 Light, 400, normal not found"

during pdf compilation, the system is using the standard font. I also tried to apply the bold or the italics font triplet, but the system can't find them either.

What has worked so far? I followed the route given here:
http://xmlgraphics.apache.org/fop/trunk/fonts.html

1. I built font-metrics xml files for my desired font with the TFReader. The related ttf-file has been discribed to me as, say "Frutiger 45 Light" and I assume that it contains at least the triplets for the style="normal" and weight="normal".

2. I specified a baseDir and an fontDir in my config file for fop (in my case, both are similar).

Here is a part of my fop config file:

-- part starts --
<entry>
   <key>baseDir</key>
   <value>D:\fop094</value>
 </entry>
<entry>
   <key>fontBaseDir</key>
   <value>D:\fop094</value>
 </entry>

--- end of part ---

I also registered my font in the config file:

-- part starts --

<font metrics-file="font.xml" embed-file="D:\fop094\font.ttf">
<font-triplet name="Frutiger45Light" weight="normal" style="normal"/>
</font>

--- end of part ---

3. The XML font metrics file and ttf file are in the font basedir. to be sure, I also put them
a) into the directory where the xslt-file is stored and
b) in the directory where the batch file that calls fop.bat (the one in fop basedir) is located.

4. I refer to new custom font name via "font-family" in the xslt-file.
As font name, I use the one that is given in the font metrics xml-file
and during font metrics building process in the dos shell (I have tried with and without the spaces).

5.  I used the config file on the command line (i.e, in a simple batch
file). It seems to be used (my hyphenation specifiations, also given in
the config file, are used), so why can't it find my font files?


Maybe I made a mistake regarding the following two things?

1. How do I know which font-triplet (regarding italics, bold) goes with
which ttf-file? Can I only use a)  the name of the file as indicator or
b) the information given during font metrics file compilation? In the
examples given in the fop config file, some files go with multiple
triplets, others do not.

2. How do I get the correct font name? Is it the one given in the font
metrics file? Or is it the one given during font metrics file
compilation (in my cases, the second one has spaces).

Thanks for any answers and best regards,
Diana






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to