On 20.03.2007 17:17:42 haad wrote:
> I'm trying to run fop-0.93 and I have problem with font embeding.
> This is java trace when I run fop with -d parameter.
> 

<snip/>
> java.lang.RuntimeException: Cannot load font. No font URIs available.
<snip/>
> 
> my userconfig.xml file looks like this:
> 
> <?xml version="1.0"?>
> <fop version="1.0">
>   <base>file:///home/haad/opt/fop-0.93/conf</base>
>   <font-base>file:///home/haad/opt/fop-0.93/fonts/</font-base>
> 
> [snip]
> 
> <fonts>
>  <font metrics-file="conf/timesbd.xml" kerning="yes" embed-file="timesbd.ttf">

Should be:
<font metrics-url="conf/timesbd.xml" kerning="yes" embed-url="timesbd.ttf">
as explained in 
http://xmlgraphics.apache.org/fop/0.93/configuration.html#renderers

The config file format has changed since 0.20.5:
http://xmlgraphics.apache.org/fop/0.93/upgrading.html

Good thing that kind of configuration will soon be a thing of the past.

>     <font-triplet name="TimesNewRoman" style="normal" weight="bold"/>
>     <font-triplet name="serif" style="normal" weight="bold"/>
>  </font>
> 
>  <font metrics-file="conf/arial.xml" kerning="yes" embed-file="arial.ttf">
>     <font-triplet name="Arial" style="normal" weight="normal"/>
>     <font-triplet name="sans-serif" style="normal" weight="normal"/>
>  </font>
>  <font metrics-file="conf/ariali.xml" kerning="yes" embed-file="ariali.ttf">
>     <font-triplet name="Arial" style="italic" weight="normal"/>
>     <font-triplet name="sans-serif" style="italic" weight="normal"/>
>  </font>
>  <font metrics-file="conf/arialbi.xml" kerning="yes" embed-file="arialbi.ttf">
>     <font-triplet name="Arial" style="italic" weight="bold"/>
>     <font-triplet name="sans-serif" style="italic" weight="bold"/>
>  </font>
> 
> </fonts>
> 
> I have tried substitute relative URIsembed-file="ariali.ttf" with
> "file:///home/haad/opt/fop-0.93/conf/times.xml" but it doesn't work ,too.
> 
> Can you help me? fo-0.20.5 works fine for me.
> 
> Regards
> 
> P.S. please CC to me I'm not subscribed to this mailinglist.
> - ---------------------------------------------------------------
> Adam Hamsik
> ICQ 249727910
> jabber [EMAIL PROTECTED]
> - ---------------------------------------------------------------
> There are 10 kinds of people in the world. Those who understand
> binary numbers, and those who don't.


Jeremias Maerki


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

Reply via email to