I have no idea at this time what could be wrong based on what you wrote.
Earlier, I've played this scenario through. Here's the configuration
file I used:
<?xml version="1.0"?>
<fop version="1.0">
<renderers>
<renderer mime="application/pdf">
<fonts>
<directory>C:\Dev\FOP\temp\fonts\Arial</directory>
</fonts>
</renderer>
</renderers>
</fop>
Only arial.ttf and arialbd.ttf are in the above directory.
On the command-line I said:
fop094 -c myfop.xconf -fo arial-test.fo -pdf out.pdf
arial-test.fo looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Arial">
<fo:layout-master-set>
<fo:simple-page-master master-name="A4" page-height="29.7cm"
page-width="21cm" margin="2cm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">
<fo:block>Hello World!</fo:block>
<fo:block font-weight="bold">Hello World in bold!</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
...and everything worked fine.
On 23.01.2008 15:32:53 Cristian Ferrero wrote:
> sorry but i have both , 400 and 700
>
> WARNING: Font 'Arial,normal,700' not found. Substituting with
> 'any,normal,700'.
> Jan 23, 2008 11:23:10 AM org.apache.fop.fonts.FontInfo notifyFontReplacement
> WARNING: Font 'Arial,normal,400' not found. Substituting with
> 'any,normal,400'.
>
> and i have bouth arialbd.ttf and arial.ttf
>
> is there any else i have to configure in the xml conf file (i only wrote
> the directory..
> <directory>/sgcv10/software/OpenCM/Files/ALI/Fonts</directory>
> ?
>
>
>
> ----- Original Message -----
> From: "Jeremias Maerki" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Wednesday, January 23, 2008 11:15 AM
> Subject: Re: fonts directory
>
>
> Ouch, another little detail I haven't see earlier: It says "700" which
> means "bold". arial.ttf only contains the normal font, not the bold
> variant. Just copy arialbd.ttf into the font directory and it should
> work.
>
> BTW, if you use the <directory> tag you don't need the XML font metrics
> file (arial.xml).
>
> On 23.01.2008 14:39:09 Cristian Ferrero wrote:
> > i have replaced with
> >
> > <directory>/sgcv10/software/OpenCM/Files/ALI/Fonts</directory>
> >
> > but still have the message
> >
> > 'Arial,normal,700' not found.
> >
> > i send you my arial xml ...could be that the problem ??
> >
> >
> >
> <snip/>
>
> Jeremias Maerki
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]