On 22.08.2006 11:22:53 pverdret wrote:
> 
> 
> Jeremias Maerki-2 wrote:
> > 
> > 
> > On 22.08.2006 10:42:03 pverdret wrote:
> >> 
> >> 
> >> Andreas L Delmelle wrote:
> >> > 
> >> > On Aug 18, 2006, at 11:20, pverdret wrote:
> >> > 
> >> > Hi,
> >> > 
> >> >>
> >> >> I'm unable to register new fonts with FOP (svn-trunk).
> >> >> <snip />
> >> >> In my configuration file i've added the following lines:
> >> >>
> >> >>
> >> >>   <font metrics-url="file:///e:/3CO/templates/Arial.xml" kerning="yes"
> >> >> embed-url="file:///c:/WINNT/fonts/Arial.ttf">
> >> >>        <font-triplet name="Arial" style="normal" weight="normal"/>
> >> >>    </font>
> >> > 
> >> > Where did you add this line precisely?
> >> > 
> >> > It needs to be added as a child node to the renderer, as described
> >> here:
> >> > http://xmlgraphics.apache.org/fop/0.92/configuration.html#renderers
> >> > 
> >> 
> >> I tested two possibilities: in the fop.xconf file, and  in a specific
> >> configuration file. Both failed.
> > 
> > That's not what Andreas asked. Please post the full configuration file.
> > That should make it easier.
> > 
> > 
> > Jeremias Maerki
> > 
> 
> The configuration file used with the -c option:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <!-- TODO: use proper config -->
> 
> <configuration>
> 
> <fonts>
> <!-- TODO: use proper config -->
> 
>     <font metrics-url="file:///e:/3CO/templates/Arial.xml" kerning="yes"
> embed-url="file:///c:/WINNT/fonts/Arial.ttf">
>         <font-triplet name="Arial" style="normal" weight="normal"/>
>     </font>
> 
>     <font metrics-url="file:///e:/3CO/templates/ARIALN.xml" kerning="yes"
> embed-url="file:///c:/WINNT/fonts/ARIALN.ttf">
>         <font-triplet name="ArialNarrow" style="normal" weight="normal"/>
>     </font>
> 
> </fonts>
> 
> </configuration>

The above will certainly not work. The structure of the configuration
file has to be the one as shown in the fop.xconf below. The file below,
if used with the -c parameter, should work. I was able to make it work
when I adjusted the paths to my local setup.

> And the fop.xconf content:
> 
> http://www.nabble.com/user-files/235713/fop.xconf fop.xconf 


Jeremias Maerki


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

Reply via email to